@types/rollup-plugin-css-only
TypeScript icon, indicating that this package has built-in type declarations

3.1.3 • Public • Published

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

/// <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

Credits

These definitions were written by Mateusz Szewc.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/rollup-plugin-css-only

Weekly Downloads

1,633

Version

3.1.3

License

MIT

Unpacked Size

4.46 kB

Total Files

5

Last publish

Collaborators

  • types