mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-24 11:29:30 +08:00
Merge pull request #1320 from ufon/master
Added void return types for some methods of gapi and spin.js. It alows compile with --noImplicitAny
This commit is contained in:
Vendored
+4
-4
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user