DefinitelyTyped/types/postcss-nested/index.d.ts
2019-02-21 11:36:49 +05:00

35 lines
1.1 KiB
TypeScript

// Type definitions for postcss-nested 4.1
// Project: https://github.com/postcss/postcss-nested#readme
// Definitions by: Maxim Vorontsov <https://github.com/VorontsovMaxim>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
import { Plugin } from 'postcss';
declare namespace nested {
interface Options {
/**
* By default, plugin will bubble only @media and @supports at-rules.
* You can add your custom at-rules to this list by this option.
*/
bubble?: string[];
/**
* By default, plugin will unwrap only @font-face, @keyframes and @document at-rules.
* You can add your custom at-rules to this list by this option.
*/
unwrap?: string[];
/**
* By default, plugin will strip out any empty selector generated by intermediate nesting
* levels. You can set this option to true to preserve them.
*/
preserveEmpty?: boolean;
}
type Nested = Plugin<Options>;
}
declare const nested: nested.Nested;
export = nested;