UNPKG

@types/jsonminify

Version:
35 lines (27 loc) 1.05 kB
# Installation > `npm install --save @types/jsonminify` # Summary This package contains type definitions for jsonminify (https://github.com/fkei/JSON.minify). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsonminify. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsonminify/index.d.ts) ````ts 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; ```` ### Additional Details * Last updated: Tue, 07 Nov 2023 03:09:37 GMT * Dependencies: none # Credits These definitions were written by [Dan Homola](https://github.com/no23reason), and [Piotr Błażejewicz](https://github.com/peterblazejewicz).