UNPKG

@hyext/utils

Version:

A tools lib for huya miniapp business development

14 lines (13 loc) 585 B
declare type SDKModel = { [key: string]: any; }; declare type SDKPolyfillOptions = { paths: string[]; SDK: SDKModel; onError?: (errMsg: string, apiName: string, path: string, callId: number, err: Error) => void; onCall?: (calledArgs: Array<any>, apiName: string, path: string, callId: number) => void; onSuccess?: (res: any, apiName: string, path: string, callId: number) => void; onPolyfill?: (ployfillSDK: any, apiName: string, value: any) => void; }; export declare const createSDKPolyfill: <T>(options: SDKPolyfillOptions) => T; export {};