@types/minify
Advanced tools
Comparing version 8.0.0 to 9.0.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for minify 8.0 | ||
// Type definitions for minify 9.0 | ||
// Project: http://coderaiser.github.io/minify | ||
@@ -6,43 +6,2 @@ // Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz> | ||
import htmlMinifier = require('html-minifier-terser'); | ||
import cleanCSS = require('clean-css'); | ||
import terser = require('terser'); | ||
/** | ||
* A minifier of js, css, html and img files. | ||
* @async | ||
*/ | ||
declare function minify(name: string, options?: Options): Promise<string>; | ||
/** | ||
* Full documentation for options that each file type accepts | ||
* can be found on the pages of the libraries used by minify to process the files | ||
*/ | ||
export interface Options { | ||
/** | ||
* see {@link https://github.com/kangax/html-minifier} | ||
*/ | ||
html?: htmlMinifier.Options | undefined; | ||
/** | ||
* see {@link https://github.com/jakubpawlowicz/clean-css} | ||
*/ | ||
css?: cleanCSS.Options | undefined; | ||
/** | ||
* see {@link https://github.com/terser/terser} | ||
*/ | ||
js?: terser.MinifyOptions | undefined; | ||
/** | ||
* see {@link https://github.com/Filirom1/css-base64-images} | ||
*/ | ||
img?: | ||
| { | ||
/** | ||
* bigger images are not base64 in the CSS | ||
* @default 4096 | ||
*/ | ||
maxSize?: number | undefined; | ||
} | ||
| undefined; | ||
} | ||
export default minify; | ||
export { minify, Options, Ext } from './lib/minify'; |
{ | ||
"name": "@types/minify", | ||
"version": "8.0.0", | ||
"version": "9.0.0", | ||
"description": "TypeScript definitions for minify", | ||
@@ -27,4 +27,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/minify", | ||
}, | ||
"typesPublisherContentHash": "56955ad035ab3aaeb7fc55c5509f714b326bfeb8bdab4ea8a416b63a2319785d", | ||
"typeScriptVersion": "3.7" | ||
"typesPublisherContentHash": "250fa4d8bdfce4696746940b59a01082cb1f3a9bd8cdee7b47b7d705b771da8a", | ||
"typeScriptVersion": "4.0" | ||
} |
@@ -9,57 +9,6 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/minify. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/minify/index.d.ts) | ||
````ts | ||
// Type definitions for minify 8.0 | ||
// Project: http://coderaiser.github.io/minify | ||
// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
import htmlMinifier = require('html-minifier-terser'); | ||
import cleanCSS = require('clean-css'); | ||
import terser = require('terser'); | ||
/** | ||
* A minifier of js, css, html and img files. | ||
* @async | ||
*/ | ||
declare function minify(name: string, options?: Options): Promise<string>; | ||
/** | ||
* Full documentation for options that each file type accepts | ||
* can be found on the pages of the libraries used by minify to process the files | ||
*/ | ||
export interface Options { | ||
/** | ||
* see {@link https://github.com/kangax/html-minifier} | ||
*/ | ||
html?: htmlMinifier.Options | undefined; | ||
/** | ||
* see {@link https://github.com/jakubpawlowicz/clean-css} | ||
*/ | ||
css?: cleanCSS.Options | undefined; | ||
/** | ||
* see {@link https://github.com/terser/terser} | ||
*/ | ||
js?: terser.MinifyOptions | undefined; | ||
/** | ||
* see {@link https://github.com/Filirom1/css-base64-images} | ||
*/ | ||
img?: | ||
| { | ||
/** | ||
* bigger images are not base64 in the CSS | ||
* @default 4096 | ||
*/ | ||
maxSize?: number | undefined; | ||
} | ||
| undefined; | ||
} | ||
export default minify; | ||
```` | ||
### Additional Details | ||
* Last updated: Tue, 26 Oct 2021 11:01:21 GMT | ||
* Dependencies: [@types/html-minifier-terser](https://npmjs.com/package/@types/html-minifier-terser), [@types/clean-css](https://npmjs.com/package/@types/clean-css), [@types/terser](https://npmjs.com/package/@types/terser) | ||
* Last updated: Sun, 12 Jun 2022 12:31:33 GMT | ||
* Dependencies: [@types/clean-css](https://npmjs.com/package/@types/clean-css), [@types/html-minifier-terser](https://npmjs.com/package/@types/html-minifier-terser), [@types/terser](https://npmjs.com/package/@types/terser) | ||
* Global values: none | ||
@@ -66,0 +15,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5913
9
99
17