From 2a6ad900947c1b9314bae2f24ebdca71085f7fb7 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 ab17fa9737..75366ad609 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; } /**