1.1.0 • Published 4 months ago

@types/jsonp-body v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

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.

1.1.0

4 months ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

4 years ago