forked from sheetjs/sheetjs
xlsx: Add new ExcelDataType type.
This allows variables to be declared as this type so an error will be raised if an incorrect value is used.
This commit is contained in:
parent
29ed597df6
commit
bf73d62903
8
index.d.ts
vendored
8
index.d.ts
vendored
@ -323,6 +323,12 @@ export interface IWorkSheet extends ISheet {
|
||||
'!autofilter'?: {ref: string};
|
||||
}
|
||||
|
||||
/**
|
||||
* The Excel data type for a cell.
|
||||
* b Boolean, n Number, e error, s String, d Date
|
||||
*/
|
||||
export type ExcelDataType = 'b' | 'n' | 'e' | 's' | 'd';
|
||||
|
||||
export interface IWorkSheetCell {
|
||||
/**
|
||||
* The raw value of the cell.
|
||||
@ -338,7 +344,7 @@ export interface IWorkSheetCell {
|
||||
* The Excel Data Type of the cell.
|
||||
* b Boolean, n Number, e error, s String, d Date
|
||||
*/
|
||||
t: 'b' | 'n' | 'e' | 's' | 'd';
|
||||
t: ExcelDataType;
|
||||
|
||||
/**
|
||||
* Cell formula (if applicable)
|
||||
|
Loading…
Reference in New Issue
Block a user