1.1.0 • Published 4 months ago
@types/jsonp-body v1.1.0
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
// Type definitions for jsonp-body 1.0
// Project: https://github.com/node-modules/jsonp-body
// Definitions by: Qingrong Ke <https://github.com/keqingrong>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Sat, 13 Nov 2021 01:31:22 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Qingrong Ke.