You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
907 B
35 lines
907 B
2 years ago
|
// Original definitions (@types/postcss-nested)
|
||
|
// by Maxim Vorontsov <https://github.com/VorontsovMaxim>
|
||
|
|
||
|
import { PluginCreator } 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 = PluginCreator<Options>
|
||
|
}
|
||
|
|
||
|
declare const nested: nested.Nested
|
||
|
|
||
|
export = nested
|