Skip to content

Commit

Permalink
Add PresenceMessage.fromValues to ably.d.ts
Browse files Browse the repository at this point in the history
Signed-off-by: Lewis Marshall <[email protected]>
  • Loading branch information
lmars committed Aug 6, 2023
1 parent cb8cd65 commit 2a6ad90
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ably.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3240,6 +3240,14 @@ declare namespace Types {
* @param channelOptions - A {@link ChannelOptions} object containing the cipher.
*/
fromEncodedArray: (JsonArray: any[], channelOptions?: ChannelOptions) => PresenceMessage[];

/**
* Initialises a `PresenceMessage` from a `PresenceMessage`-like object.
*
* @param values - The values to intialise the `PresenceMessage` from.
* @param stringifyAction - Whether to convert the `action` field from a number to a string.
*/
fromValues(values: PresenceMessage | Record<string, unknown>, stringifyAction?: boolean): PresenceMessage;
}

/**
Expand Down

0 comments on commit 2a6ad90

Please sign in to comment.