1.4.4 • Published 6 months ago

@types/rollup-plugin-node-globals v1.4.4

Weekly downloads
839
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/rollup-plugin-node-globals

Summary

This package contains type definitions for rollup-plugin-node-globals (https://github.com/calvinmetcalf/rollup-plugin-node-globals#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rollup-plugin-node-globals.

index.d.ts

// Type definitions for rollup-plugin-node-globals 1.4
// Project: https://github.com/calvinmetcalf/rollup-plugin-node-globals#readme
// Definitions by: Hugo Alliaume <https://github.com/kocal>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

/// <reference types="node" />

import { Plugin } from 'rollup';

export interface Options {
    // Every files will be parsed by default, but you can specify which files to include or exclude
    include?: Array<string | RegExp> | string | RegExp | null | undefined;
    exclude?: Array<string | RegExp> | string | RegExp | null | undefined;

    // Enable sourcemaps support
    sourceMap ?: boolean | undefined;

    // Plugin's options
    process?: boolean | undefined;
    global?: boolean | undefined;
    buffer?: boolean | undefined;
    dirname?: boolean | undefined;
    filename?: boolean | undefined;
    baseDir?: string | undefined;
}

export default function globals(options?: Options): Plugin;

Additional Details

Credits

These definitions were written by Hugo Alliaume.