mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
17 lines
478 B
TypeScript
17 lines
478 B
TypeScript
// Type definitions for fetch-jsonp 1.0
|
|
// Project: https://github.com/camsong/fetch-jsonp
|
|
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.2
|
|
|
|
declare namespace fetchJsonp {
|
|
interface Options {
|
|
timeout?: number;
|
|
jsonpCallback?: string;
|
|
}
|
|
}
|
|
|
|
declare function fetchJsonp(url: RequestInfo, options?: fetchJsonp.Options): Promise<Response>;
|
|
|
|
export = fetchJsonp;
|