UNPKG

@telegram-apps/bridge

Version:

TypeScript package to provide communication layer between Mini App and Telegram application.

11 lines (10 loc) 329 B
/** * Returns true in case, passed value contains path `TelegramWebviewProxy.postEvent` property and * `postEvent` is a function. * @param value - value to check. */ export declare function hasWebviewProxy<T>(value: T): value is T & { TelegramWebviewProxy: { postEvent: (...args: unknown[]) => unknown; }; };