UNPKG

953 BTypeScriptView Raw
1export = pluginCreator;
2/**
3 * @typedef {{ overrideBrowserslist?: string | string[] }} AutoprefixerOptions
4 * @typedef {Pick<browserslist.Options, 'stats' | 'path' | 'env'>} BrowserslistOptions
5 * @typedef {{ignore?: string[]} & AutoprefixerOptions & BrowserslistOptions} Options
6 */
7/**
8 * @type {import('postcss').PluginCreator<Options>}
9 * @param {Options} options
10 * @return {import('postcss').Plugin}
11 */
12declare function pluginCreator(options?: Options): import('postcss').Plugin;
13declare namespace pluginCreator {
14 export { postcss, AutoprefixerOptions, BrowserslistOptions, Options };
15}
16type Options = {
17 ignore?: string[];
18} & AutoprefixerOptions & BrowserslistOptions;
19declare var postcss: true;
20type AutoprefixerOptions = {
21 overrideBrowserslist?: string | string[];
22};
23type BrowserslistOptions = Pick<browserslist.Options, 'stats' | 'path' | 'env'>;
24import browserslist = require("browserslist");
25//# sourceMappingURL=index.d.ts.map
\No newline at end of file