Add errorType

This commit is contained in:
Jazz Turner-Baggs 2026-02-17 16:19:53 -08:00
parent 9cd25d4f53
commit fb1df125f5
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,7 @@ type ChatClient* = ref object
# Constructors
#################################################
proc newClient*(ds: WakuClient, ephemeral: bool = true, installation_name: string = "default"): Result[ChatClient, string] =
proc newClient*(ds: WakuClient, ephemeral: bool = true, installation_name: string = "default"): Result[ChatClient, ErrorType] =
## Creates new instance of a `ChatClient` with a given `WakuConfig`.
## A new installation is created if no saved installation with `installation_name` is found

View File

@ -1,2 +1,3 @@
type MessageId* = string
type Content* = seq[byte]
type ErrorType* = string