UNPKG

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