From c7c7afe5780a45c23725dedf54bbc342bb8cd6fd Mon Sep 17 00:00:00 2001 From: Alois Date: Thu, 27 Aug 2026 22:16:16 +0200 Subject: [PATCH] fix(example): web-client type --- src/sdk/client.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sdk/client.ts b/src/sdk/client.ts index 499c44f..e0307cd 100644 --- a/src/sdk/client.ts +++ b/src/sdk/client.ts @@ -1504,7 +1504,11 @@ export class MTPClient { ): Unsubscribe; subscribe( type: MTPCommunicationType, - handler: (message: MTPFrame) => void | Promise, + handler: (message: ParsedFrame) => void | Promise, + ): Unsubscribe; + subscribe( + type: MTPCommunicationType, + handler: (message: any) => void | Promise, ): Unsubscribe { if (typeof type !== "string" || !type) { throw new TypeError("subscription type must be a non-empty string");