UNPKG

1.07 kBTypeScriptView Raw
1// Type definitions for rollup-plugin-css-only 3.1
2// Project: https://github.com/thgh/rollup-plugin-css-only
3// Definitions by: Mateusz Szewc <https://github.com/SitamMatt>
4// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
6/// <reference types="node" />
7import { Plugin, OutputBundle } from 'rollup';
8
9declare namespace css {
10 interface Options {
11 /**
12 * All CSS files will be parsed by default, but you can also specifically include files
13 */
14 include?: ReadonlyArray<string | RegExp> | string | RegExp | null;
15 /**
16 * CSS files to exclude from being parsed
17 */
18 exclude?: ReadonlyArray<string | RegExp> | string | RegExp | null;
19 /**
20 * Callback that will be called ongenerate
21 */
22 output?:
23 | boolean
24 | string
25 | ((styles: string, styleNodes: Record<string, string>, bundle: OutputBundle) => void)
26 | null
27 | undefined;
28 }
29}
30
31declare function css(options?: css.Options): Plugin;
32export = css;
33
\No newline at end of file