read-excel-file 5.2.23 → 5.2.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "read-excel-file",
3
- "version": "5.2.23",
3
+ "version": "5.2.24",
4
4
  "description": "Read small to medium `*.xlsx` files in a browser or Node.js. Parse to JSON with a strict schema.",
5
5
  "module": "index.js",
6
6
  "sideEffects": false,
@@ -1 +1,17 @@
1
- export * from '../index.d';
1
+ import {
2
+ ParseWithSchemaOptions,
3
+ ParseWithMapOptions,
4
+ ParseWithoutSchemaOptions,
5
+ ParsedObjectsResult,
6
+ Row
7
+ } from '../types.d';
8
+
9
+ export function parseExcelDate(excelSerialDate: number) : typeof Date;
10
+
11
+ type Input = File;
12
+
13
+ export function readXlsxFile<T extends object>(input: Input, options: ParseWithSchemaOptions<T>) : Promise<ParsedObjectsResult<T>>;
14
+ export function readXlsxFile<T extends object>(input: Input, options: ParseWithMapOptions) : Promise<ParsedObjectsResult<T>>;
15
+ export function readXlsxFile(input: Input, options?: ParseWithoutSchemaOptions) : Promise<Row[]>;
16
+
17
+ export default readXlsxFile;