UNPKG

@types/rollup-plugin-css-only

Version:
47 lines (39 loc) 1.58 kB
# Installation > `npm install --save @types/rollup-plugin-css-only` # Summary This package contains type definitions for rollup-plugin-css-only (https://github.com/thgh/rollup-plugin-css-only). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rollup-plugin-css-only. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rollup-plugin-css-only/index.d.ts) ````ts /// <reference types="node" /> import { OutputBundle, Plugin } from "rollup"; declare namespace css { interface Options { /** * All CSS files will be parsed by default, but you can also specifically include files */ include?: ReadonlyArray<string | RegExp> | string | RegExp | null; /** * CSS files to exclude from being parsed */ exclude?: ReadonlyArray<string | RegExp> | string | RegExp | null; /** * Callback that will be called ongenerate */ output?: | boolean | string | ((styles: string, styleNodes: Record<string, string>, bundle: OutputBundle) => void) | null | undefined; } } declare function css(options?: css.Options): Plugin; export = css; ```` ### Additional Details * Last updated: Tue, 07 Nov 2023 15:11:36 GMT * Dependencies: [@types/node](https://npmjs.com/package/@types/node), [rollup](https://npmjs.com/package/rollup) # Credits These definitions were written by [Mateusz Szewc](https://github.com/SitamMatt).