DefinitelyTyped/types/jsonminify/index.d.ts
Piotr Błażejewicz (Peter Blazejewicz) 51ff4a7f33
🤖 Merge PR #46991 feat(jsonminify): expand module definition by @peterblazejewicz
- augment `JSON.minify` method
- amend tests for CMJ/globla scripts
- mantainer added

https://github.com/fkei/JSON.minify/blob/master/minify.json.js#L83-L92

Thanks!
2020-08-24 15:48:18 -04:00

22 lines
680 B
TypeScript

// Type definitions for jsonminify 0.4.1
// Project: https://github.com/fkei/JSON.minify
// Definitions by: Dan Homola <https://github.com/no23reason>
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare global {
interface JSON {
/**
* minifies blocks of JSON-like content into valid JSON by removing all whitespace and comments.
*/
minify(json: string): string;
}
}
/**
* minifies blocks of JSON-like content into valid JSON by removing all whitespace and comments.
*/
declare function minify(json: string): string;
export = minify;