3.1.3 • Published 7 months ago
@types/rollup-plugin-css-only v3.1.3
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
// Type definitions for rollup-plugin-css-only 3.1
// Project: https://github.com/thgh/rollup-plugin-css-only
// Definitions by: Mateusz Szewc <https://github.com/SitamMatt>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import { Plugin, OutputBundle } 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: Sun, 14 Nov 2021 17:31:22 GMT
- Dependencies: @types/rollup, @types/node
- Global values: none
Credits
These definitions were written by Mateusz Szewc.