This commit is contained in:
2021-01-26 17:09:22 +08:00
parent 89fed62dcc
commit 592115c8f0

View File

@@ -29,6 +29,11 @@ interface RawTableCell extends xlsl.CellObject {
type RawTableData = RawTableCell[][];
export interface TableData {
struct: Field;
data: {[key: string]: any}[];
}
export interface ParserConfigs {
/** 第一列作为ID */
first_column_as_id: boolean;
@@ -213,26 +218,6 @@ export class Field {
}
}
const TypeCompatibility = {
string: 5,
float: 4,
int: 3,
bool: 2,
null: 1
};
export interface ColumnDescription {
type: DataType;
name: string;
is_array?: boolean;
comment?: string;
}
export interface TableData {
struct: Field;
data: {[key: string]: any}[];
}
export class TableParser {
configs: ParserConfigs = null;