forked from rollup/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
29 lines (27 loc) · 1005 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import type { DSVRowString } from 'd3-dsv';
import type { FilterPattern } from '@rollup/pluginutils';
import type { Plugin } from 'rollup';
interface RollupDsvOptions {
/**
* A picomatch pattern, or array of patterns, which specifies the files in the build the plugin
* should operate on.
* By default all files are targeted.
*/
include?: FilterPattern;
/**
* A picomatch pattern, or array of patterns, which specifies the files in the build the plugin
* should _ignore_.
* By default no files are ignored.
*/
exclude?: FilterPattern;
/**
* Specifies a function which processes each row in the parsed array.
* The function can either manipulate the passed row, or return an entirely new row object.
* @default undefined
*/
processRow?: null | ((row: DSVRowString, id: string) => DSVRowString | undefined);
}
/**
* Convert `.csv` and `.tsv `files into JavaScript modules with `d3-dsv`.
*/
export default function dsv(options?: RollupDsvOptions): Plugin;