diff --git a/hellojs/hellojs.d.ts b/hellojs/hellojs.d.ts index d831a3d836..8f0a9e9caa 100644 --- a/hellojs/hellojs.d.ts +++ b/hellojs/hellojs.d.ts @@ -68,6 +68,7 @@ interface HelloJSEvent extends HelloJSThenable { } + interface HelloJSEventArgument { network: string; authResponse?: any; @@ -85,13 +86,9 @@ interface HelloJSStatic extends HelloJSEvent { init(servicesDef: { [id: string]: HelloJSServiceDef; }): void; } - - - - interface HelloJSStaticNamed { - login(option?: HelloJSLoginOptions, callback?: () => void): HelloJSThenable; - logout(callback?: () => void): HelloJSThenable; + login(option?: HelloJSLoginOptions, callback?: () => void): void; + logout(callback?: () => void): void; getAuthResponse(): any; api(path?: string, method?: string, data?: any, callback?: (json?: any) => void): HelloJSStatic; }