1 | # Installation
|
2 | > `npm install --save @types/cssnano`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for cssnano (https://github.com/cssnano/cssnano).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cssnano.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cssnano/index.d.ts)
|
10 | ````ts
|
11 | // Type definitions for cssnano 4.0
|
12 | // Project: https://github.com/cssnano/cssnano
|
13 | // Definitions by: Armando Meziat <https://github.com/odnamrataizem>
|
14 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
15 | // TypeScript Version: 2.2
|
16 |
|
17 | import { Plugin } from 'postcss';
|
18 |
|
19 | declare namespace cssnano {
|
20 | interface CssNanoOptions {
|
21 | configFile?: string | undefined;
|
22 | preset?: [string, object] | string | undefined;
|
23 | }
|
24 |
|
25 | type CssNano = Plugin<CssNanoOptions>;
|
26 | }
|
27 |
|
28 | declare const cssnano: cssnano.CssNano;
|
29 | export = cssnano;
|
30 |
|
31 | ````
|
32 |
|
33 | ### Additional Details
|
34 | * Last updated: Tue, 06 Jul 2021 20:32:34 GMT
|
35 | * Dependencies: [@types/postcss](https://npmjs.com/package/@types/postcss)
|
36 | * Global values: none
|
37 |
|
38 | # Credits
|
39 | These definitions were written by [Armando Meziat](https://github.com/odnamrataizem).
|
40 |
|
\ | No newline at end of file |