DefinitelyTyped/types/rollup-plugin-sourcemaps/index.d.ts
2019-01-22 00:41:15 +00:00

20 lines
808 B
TypeScript

// Type definitions for rollup-plugin-sourcemaps 0.4
// Project: https://github.com/maxdavidson/rollup-plugin-sourcemaps#readme
// Definitions by: Eoin O'Brien <https://github.com/eoin-obrien>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="node" />
import { Plugin } from 'rollup';
export type ReadFileCallback = (err: NodeJS.ErrnoException, data: string) => void;
export type ReadFileFunction = (file: string | Buffer | number, encoding: string, callback: ReadFileCallback) => void;
export interface Options {
include?: Array<string | RegExp> | string | RegExp | null;
exclude?: Array<string | RegExp> | string | RegExp | null;
readFile?: ReadFileFunction;
}
export default function sourcemaps(options?: Options): Plugin;