mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
- 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!
22 lines
680 B
TypeScript
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;
|