@open-condo/bridge
Version:
A library that allows the client of your mini-application to communicate with the main user's client on different devices, using a common bridge API
3 lines • 619 B
TypeScript
import type { AnyRequestMethodName, RequestId, RequestParams, CondoBridgeSubscriptionListener, AnyResponseMethodName, ResultResponseData } from './types/bridge';
export declare function promisifySend(send: <Method extends AnyRequestMethodName>(method: Method, params?: RequestParams<Method> & RequestId) => void, subscribe: (listener: CondoBridgeSubscriptionListener) => void): <Method extends AnyRequestMethodName>(method: Method, params?: RequestParams<Method> & RequestId, timeout?: number) => Promise<Method extends AnyResponseMethodName ? ResultResponseData<Method> : void>;
//# sourceMappingURL=promisify.d.ts.map