-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
Description
🐛 Bug Report
The index.d.ts file contains compile errors that will cause all typescript projects depending on exceljs fail.
The reason is that index.d.ts which is bundled with exceljs references some types that do not exist in the file and are not declared as imports
Lib version: 3.8.2
Steps To Reproduce
try to compile index.d.ts with tsc
> tsc node_modules/exceljs/index.d.ts
node_modules/exceljs/index.d.ts:1319:21 - error TS2304: Cannot find name 'HeaderTransformFunction'.
1319 headers: boolean | HeaderTransformFunction | HeaderArray;
~~~~~~~~~~~~~~~~~~~~~~~
node_modules/exceljs/index.d.ts:1319:47 - error TS2304: Cannot find name 'HeaderArray'.
1319 headers: boolean | HeaderTransformFunction | HeaderArray;
~~~~~~~~~~~
node_modules/exceljs/index.d.ts:1341:16 - error TS2304: Cannot find name 'QuoteColumns'.
1341 quoteColumns: QuoteColumns;
~~~~~~~~~~~~
node_modules/exceljs/index.d.ts:1342:16 - error TS2304: Cannot find name 'QuoteColumns'.
1342 quoteHeaders: QuoteColumns;
~~~~~~~~~~~~
node_modules/exceljs/index.d.ts:1346:13 - error TS2304: Cannot find name 'RowTransformFunction'.
1346 transform: RowTransformFunction;
~~~~~~~~~~~~~~~~~~~~
Found 5 errors.
The expected behaviour:
that file should compile
Possible solution (optional, but very helpful):
add the missing types to fix the issue
Dominic-Preap