提交 bf73d629 编写于 作者: W Wolfgang Faust

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.
上级 29ed597d
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册