@tybys/jweixin
Version:
Weixin JS SDK UMD with typescript typings
9 lines (7 loc) • 378 B
TypeScript
/// <reference path="bridge.d.ts" />
declare namespace WeixinJSBridge {
export function call (): never;
export function invoke (message: string, options: wx.WXInvokeOptions, callback: (res: wx.WXBridgeResponse) => void): void;
export function log (message: any): void;
export function on (event?: string, listener?: (res: wx.WXBridgeResponse) => void): void;
}