-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.d.ts
58 lines (53 loc) · 1.6 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
export = cleanupPlugin
declare function cleanupPlugin (options?: cleanupPlugin.Options): import('rollup').Plugin
// tslint:disable-next-line:no-namespace
declare namespace cleanupPlugin {
type PicoMatchGlob = string | RegExp | Array<string | RegExp>
interface Options {
/**
* Determinates which comments must be preserved.
* @default ['some']
*/
comments?: string | RegExp | Array<string | RegExp>
/**
* Should js-cleanup also compact whitespace and blank lines
* in the preserved multiline comments?
*
* Line-ending normalization is always done.
* @default true
*/
compactComments?: boolean
/**
* Type of Line-ending for normalization.
* @default 'unix'
*/
lineEndings?: 'unix' | 'mac' | 'win'
/**
* Maximum successive empty lines to preserve in the output.
*
* Use a positive value, or `-1` to keep all the lines.
* @default 0
*/
maxEmptyLines?: number
/**
* Should generate a sourcemap?
* @default true
*/
sourcemap?: boolean
/**
* picomatch or array of picomatch patterns for paths to include in the process.
* @see https://github.com/micromatch/picomatch#globbing-features
*/
include?: PicoMatchGlob
/**
* picomatch or array of picomatch patterns for paths to include in the process.
* @see https://github.com/micromatch/picomatch#globbing-features
*/
exclude?: PicoMatchGlob
/**
* String or array of strings with extensions of files to process.
* @default ['js','jsx','mjs']
*/
extensions?: string | string[]
}
}