Skip to content

Commit 99f7798

Browse files
committed
Add PresenceMessage.fromValues to ably.d.ts
Signed-off-by: Lewis Marshall <lewis.marshall@ably.com>
1 parent 5baf94d commit 99f7798

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ably.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3240,6 +3240,14 @@ declare namespace Types {
32403240
* @param channelOptions - A {@link ChannelOptions} object containing the cipher.
32413241
*/
32423242
fromEncodedArray: (JsonArray: any[], channelOptions?: ChannelOptions) => PresenceMessage[];
3243+
3244+
/**
3245+
* Initialises a `PresenceMessage` from a `PresenceMessage`-like object.
3246+
*
3247+
* @param values - The values to intialise the `PresenceMessage` from.
3248+
* @param stringifyAction - Whether to convert the `action` field from a number to a string.
3249+
*/
3250+
fromValues(values: PresenceMessage | Record<string, unknown>, stringifyAction?: boolean): PresenceMessage;
32433251
}
32443252

32453253
/**

0 commit comments

Comments
 (0)