forked from smart-on-fhir/bulk-data-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
68 lines (55 loc) · 1.67 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
59
60
61
62
63
64
65
66
67
68
declare namespace BulkDataTools {
interface IReadableFileSizeOptions {
/**
* The decimal units precision
*/
precision?: number;
/**
* The number of decimal units for fixed precision
*/
fixed?: number;
/**
* If true use 1024 based fractions
*/
useBinary?: boolean;
}
interface IAnyObject {
[key: string]: any;
}
/**
* A number or a (presumably numeric) string
*/
type Numeric = string | number;
/**
* A filter for picking files. Can be a RegExp instance or custom filter
* function
*/
type FileFilter = RegExp | ((file: string) => boolean);
/**
* Options for parsing and serializing delimited formats like CSV ot TSV
*/
interface IDelimitedFormatOptions {
/**
* The value delimiter to use while parsing and serializing. E.g.: ","
* for CSV or "\t" for TSV.
*/
delimiter?: string;
/**
* The line separator to use while converting to string. Note that this
* does not affect parsing, which will detect both "\n" and "\r\n" as
* lines separators.
*/
eol?: string;
/**
* The file extension for this format, E.g.: "csv" or "tsv".
*/
extension?: string;
/**
* How to compute the header if the input is an array of objects.
* If `false`, only the first row object will be used to compute the
* header. If true, all the row objects will be used to create a header
* having every possible property.
*/
strictHeader?: boolean;
}
}