File tree Expand file tree Collapse file tree
docs/reference/functions/typescript Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ function setDocStore(params: SetDocStoreParams): void;
3434
3535📦 Import from ` @junobuild/functions/sdk `
3636
37- Parameters:
37+ #### Parameters:
3838
3939- ` params ` : An object containing the following fields:
4040 - ` caller ` : The caller initiating the operation (` RawUserId ` or ` UserId ` ).
@@ -45,11 +45,11 @@ Parameters:
4545 - ` description ` (optional): A short description linked with the document.
4646 - ` version ` (optional if new): An expected version number to prevent overwrite.
4747
48- Returns:
48+ #### Returns:
4949
5050- ` void `
5151
52- Throws:
52+ #### Throws:
5353
5454- ` ZodError ` if the input schema is invalid.
5555- ` Error ` if the operation is rejected by the Satellite (e.g. due to a failed assertion or validation error).
Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ function decodeDocData<T>(data: Uint8Array): T;
3232
3333📦 Import from ` @junobuild/functions/utils `
3434
35- Parameters:
35+ #### Parameters:
3636
3737- ` data ` : A Uint8Array containing the raw binary document data.
3838
39- Returns:
39+ #### Returns:
4040
4141- A deserialized object of type ` T ` .
4242
@@ -52,10 +52,10 @@ function encodeDocData<T>(data: T): Uint8Array;
5252
5353📦 Import from ` @junobuild/functions/utils `
5454
55- Parameters:
55+ #### Parameters:
5656
5757- ` data ` : A JavaScript object to serialize.
5858
59- Returns:
59+ #### Returns:
6060
6161- A ` Uint8Array ` containing the encoded binary data.
You can’t perform that action at this time.
0 commit comments