From 99f779858e4c99b925f9b81d893d1f8d5bbaf52f Mon Sep 17 00:00:00 2001 From: Lewis Marshall Date: Sun, 6 Aug 2023 11:14:24 +0100 Subject: [PATCH] Add PresenceMessage.fromValues to ably.d.ts Signed-off-by: Lewis Marshall --- ably.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ably.d.ts b/ably.d.ts index e337fac115..5433d5b63f 100644 --- a/ably.d.ts +++ b/ably.d.ts @@ -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, stringifyAction?: boolean): PresenceMessage; } /**