3.1.3 • Published 7 months ago

@types/rollup-plugin-css-only v3.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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

Credits

These definitions were written by Mateusz Szewc.

3.1.3

7 months ago

3.1.2

7 months ago

3.1.1

8 months ago

3.1.0

3 years ago