1 | import { DSVRowString } from 'd3-dsv';
|
2 | import { FilterPattern } from '@rollup/pluginutils';
|
3 | import { Plugin } from 'rollup';
|
4 |
|
5 | interface RollupDsvOptions {
|
6 | /**
|
7 | * A picomatch pattern, or array of patterns, which specifies the files in the build the plugin
|
8 | * should operate on.
|
9 | * By default all files are targeted.
|
10 | */
|
11 | include?: FilterPattern;
|
12 | /**
|
13 | * A picomatch pattern, or array of patterns, which specifies the files in the build the plugin
|
14 | * should _ignore_.
|
15 | * By default no files are ignored.
|
16 | */
|
17 | exclude?: FilterPattern;
|
18 | /**
|
19 | * Specifies a function which processes each row in the parsed array.
|
20 | * The function can either manipulate the passed row, or return an entirely new row object.
|
21 | * @default undefined
|
22 | */
|
23 | processRow?: null | ((row: DSVRowString, id: string) => DSVRowString | undefined);
|
24 | }
|
25 |
|
26 | /**
|
27 | * Convert `.csv` and `.tsv `files into JavaScript modules with `d3-dsv`.
|
28 | */
|
29 | export default function dsv(options?: RollupDsvOptions): Plugin;
|
30 |
|
\ | No newline at end of file |