index.d.ts 734 B

1234567891011121314151617181920212223242526
  1. import type * as PostCSS from 'postcss'
  2. export type PluginOptions = {
  3. /** Determines whether multiple, duplicate insertions are allowed */
  4. allowDuplicates?: boolean
  5. /** Defines an override of the project’s browserslist for this plugin. */
  6. browsers?: string
  7. /** Defines whether imports from this plugin will always be inserted at the beginning of a CSS file. */
  8. forceImport?: boolean
  9. }
  10. export type Plugin = {
  11. (pluginOptions?: PluginOptions): {
  12. postcssPlugin: 'postcss-normalize'
  13. Once(root: PostCSS.Root): void
  14. postcssImport: {
  15. load(filename: string, importOptions: any): {}
  16. resolve(id: string, basedir: string, importOptions: any): {}
  17. }
  18. }
  19. postcss: true
  20. }
  21. declare const plugin: Plugin
  22. export default plugin