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

1.0.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/jsonp-body

Weekly Downloads

27

Version

1.0.2

License

MIT

Unpacked Size

3.59 kB

Total Files

5

Last publish

Collaborators

  • types