@types/jsonp
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

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

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: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Savva Surenkov.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/jsonp

Weekly Downloads

10,265

Version

0.2.3

License

MIT

Unpacked Size

3.36 kB

Total Files

5

Last publish

Collaborators

  • types