fix(example): web-client type
Some checks failed
CI / checks (push) Failing after 3m16s

This commit is contained in:
Alois 2026-08-27 22:16:16 +02:00
commit c7c7afe578
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24

View file

@ -1504,7 +1504,11 @@ export class MTPClient<Registry extends MTPSchemaRegistry = MTPNoSchemas> {
): Unsubscribe;
subscribe(
type: MTPCommunicationType,
handler: (message: MTPFrame<unknown>) => void | Promise<void>,
handler: (message: ParsedFrame) => void | Promise<void>,
): Unsubscribe;
subscribe(
type: MTPCommunicationType,
handler: (message: any) => void | Promise<void>,
): Unsubscribe {
if (typeof type !== "string" || !type) {
throw new TypeError("subscription type must be a non-empty string");