-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathindex.d.ts
30 lines (24 loc) · 814 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
30
import {
ParseWithSchemaOptions,
ParseWithMapOptions,
ParseWithoutSchemaOptions,
ParsedObjectsResult,
Row
} from './types.d.js';
export {
Schema,
ParsedObjectsResult,
Error,
CellValue,
Row,
Integer,
Email,
URL
} from './types.d.js';
export function parseExcelDate(excelSerialDate: number) : typeof Date;
type Input = File | Blob | ArrayBuffer;
export function readXlsxFile<T extends object>(input: Input, options: ParseWithSchemaOptions<T>) : Promise<ParsedObjectsResult<T>>;
export function readXlsxFile<T extends object>(input: Input, options: ParseWithMapOptions) : Promise<ParsedObjectsResult<T>>;
export function readXlsxFile(input: Input, options?: ParseWithoutSchemaOptions) : Promise<Row[]>;
export function readSheetNames(input: Input) : Promise<string[]>;
export default readXlsxFile;