From 4051a55c9ffc48ff4c15b5513fd0ba5017540f42 Mon Sep 17 00:00:00 2001 From: Pavel Zika Date: Tue, 15 Apr 2014 13:40:45 +0200 Subject: [PATCH] Update hellojs.d.ts --- hellojs/hellojs.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/hellojs/hellojs.d.ts b/hellojs/hellojs.d.ts index 010264ffb..7727f667e 100644 --- a/hellojs/hellojs.d.ts +++ b/hellojs/hellojs.d.ts @@ -1,5 +1,5 @@ // Type definitions for hello.js 0.2.1 -// Project: http://adodson.com/hello.js +// Project: http://knockoutjs.com // Definitions by: Pavel Zika // Definitions: https://github.com/borisyankov/DefinitelyTyped @@ -20,21 +20,21 @@ interface HelloJSEventArgument { } interface HelloJSStatic { - init(serviceAppIds: { [id: string]: string; }, defaultOptions?: HelloJSLoginOptions); - login(network: string, option?: HelloJSLoginOptions, callback?: () => void); - logout(network: string, callback?: () => void); + init(serviceAppIds: { [id: string]: string; }, defaultOptions?: HelloJSLoginOptions):void; + login(network: string, option?: HelloJSLoginOptions, callback?: () => void): void; + logout(network: string, callback?: () => void): void; on(eventName: string, event: (auth: HelloJSEventArgument) => void): HelloJSStatic; off(eventName: string, event: (auth: HelloJSEventArgument) => void): HelloJSStatic; getAuthResponse(network: string): any; - service(network: string): any; + service(network: string): HelloJSServiceDef; settings: HelloJSLoginOptions; (network: string): HelloJSStaticNamed; - init(servicesDef: { [id: string]: HelloJSServiceDef; }); + init(servicesDef: { [id: string]: HelloJSServiceDef; }): void; } interface HelloJSStaticNamed { - login(option?: HelloJSLoginOptions, callback?: () => void); - logout(callback?: () => void); + login(option?: HelloJSLoginOptions, callback?: () => void): void; + logout(callback?: () => void): void; getAuthResponse(): any; }