0.2.3 • Published 2 years ago
@types/jsonp v0.2.3
Installation
npm install --save @types/jsonp
Summary
This package contains type definitions for jsonp (https://github.com/LearnBoost/jsonp).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsonp.
index.d.ts
// Type definitions for jsonp 0.2
// Project: https://github.com/LearnBoost/jsonp
// Definitions by: Savva Surenkov <https://github.com/surenkov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = jsonp;
declare function jsonp(url: string, options?: Options, cb?: RequestCallback): CancelFn;
declare function jsonp(url: string, callback?: RequestCallback): CancelFn;
type CancelFn = () => void;
type RequestCallback = (error: Error | null, data: any) => void;
interface Options {
param?: string | undefined;
prefix?: string | undefined;
name?: string | undefined;
timeout?: number | undefined;
}
Additional Details
- Last updated: Thu, 08 Jul 2021 16:22:54 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Savva Surenkov.