DefinitelyTyped/types/cssnano/index.d.ts
Armando Meziat e8982eabf4 Add typings for cssnano (#27800)
* Add typings for cssnano

* Use "import = require" instead
2018-08-02 09:59:11 -07:00

20 lines
525 B
TypeScript

// Type definitions for cssnano 4.0
// Project: https://github.com/cssnano/cssnano
// Definitions by: Armando Meziat <https://github.com/odnamrataizem>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
import { Plugin } from 'postcss';
declare namespace cssnano {
interface CssNanoOptions {
configFile?: string;
preset?: [string, object] | string;
}
type CssNano = Plugin<CssNanoOptions>;
}
declare const cssnano: cssnano.CssNano;
export = cssnano;