Installation
npm install --save @types/jsonp-body
Summary
This package contains type definitions for jsonp-body (https://github.com/node-modules/jsonp-body).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsonp-body.
index.d.ts
declare namespace jsonp {
interface Options {
/** length limit for callback function name, default to `512` */
limit?: number;
/** replacer in `JSON.stringify(obj, [replacer, [space]])` */
replacer?: Parameters<typeof JSON.stringify>[1];
/** space in `JSON.stringify(obj, [replacer, [space]])` */
space?: Parameters<typeof JSON.stringify>[2];
}
}
declare function jsonp(obj: any, callback?: string | string[], options?: jsonp.Options): string;
export = jsonp;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by Qingrong Ke.