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.

34 lines
907 B

2 years ago
  1. // Original definitions (@types/postcss-nested)
  2. // by Maxim Vorontsov <https://github.com/VorontsovMaxim>
  3. import { PluginCreator } from 'postcss'
  4. declare namespace nested {
  5. interface Options {
  6. /**
  7. * By default, plugin will bubble only `@media` and `@supports` at-rules.
  8. * You can add your custom at-rules to this list by this option.
  9. */
  10. bubble?: string[]
  11. /**
  12. * By default, plugin will unwrap only `@font-face`, `@keyframes`,
  13. * and `@document` at-rules. You can add your custom at-rules
  14. * to this list by this option.
  15. */
  16. unwrap?: string[]
  17. /**
  18. * By default, plugin will strip out any empty selector generated
  19. * by intermediate nesting levels. You can set this option to `true`
  20. * to preserve them.
  21. */
  22. preserveEmpty?: boolean
  23. }
  24. type Nested = PluginCreator<Options>
  25. }
  26. declare const nested: nested.Nested
  27. export = nested