From 21f83910f572d00f45204b46d714141477a18f78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Oborn=C3=ADk?= Date: Sat, 23 Nov 2013 18:32:36 +0100 Subject: [PATCH 1/2] Added void return types for some methods. It alows compile with --noImplicitAny flag. --- gapi/gapi.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gapi/gapi.d.ts b/gapi/gapi.d.ts index e001bf8aa..6da4200aa 100644 --- a/gapi/gapi.d.ts +++ b/gapi/gapi.d.ts @@ -140,7 +140,7 @@ declare module gapi.client { status: number; statusText: string; } - ) => any); + ) => any):void; } /** * Represents an HTTP Batch operation. Individual HTTP requests are added with the add method and the batch is executed using execute. @@ -166,7 +166,7 @@ declare module gapi.client { */ rawBatchResponse: any ) => any - }); + }):void; /** * Executes all requests in the batch. The supplied callback is executed on success or failure. * @param callback The callback to execute when the batch returns. @@ -180,7 +180,7 @@ declare module gapi.client { * is the same response, but as an unparsed JSON-string. */ rawBatchResponse: string - ) => any); + ) => any):void; } /** @@ -201,7 +201,7 @@ declare module gapi.client { * is the same as jsonResp, except it is a raw string that has not been parsed. It is typically used when the response is not JSON. */ rawResp: string - ) => void ); + ) => void ):void; } } From 1de38a7ac8357b8a9269fad1e143d855cb559507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Oborn=C3=ADk?= Date: Sat, 23 Nov 2013 21:52:50 +0100 Subject: [PATCH 2/2] spin.js - added missed types for --noImplicitAny typescript compilation --- spin/spin.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spin/spin.d.ts b/spin/spin.d.ts index 88a45943a..c7ceac2b6 100644 --- a/spin/spin.d.ts +++ b/spin/spin.d.ts @@ -41,6 +41,6 @@ declare class Spinner { * Stopped spinners may be reused by calling spin() again. */ stop(): Spinner; - lines(el, o); - opacity(el, i, val); + lines(el:HTMLElement, o:SpinnerOptions):HTMLElement; + opacity(el:HTMLElement, i:number, val:number, o:SpinnerOptions):void; }