cleanup
This commit is contained in:
@@ -29,6 +29,11 @@ interface RawTableCell extends xlsl.CellObject {
|
|||||||
|
|
||||||
type RawTableData = RawTableCell[][];
|
type RawTableData = RawTableCell[][];
|
||||||
|
|
||||||
|
export interface TableData {
|
||||||
|
struct: Field;
|
||||||
|
data: {[key: string]: any}[];
|
||||||
|
}
|
||||||
|
|
||||||
export interface ParserConfigs {
|
export interface ParserConfigs {
|
||||||
/** 第一列作为ID */
|
/** 第一列作为ID */
|
||||||
first_column_as_id: boolean;
|
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 {
|
export class TableParser {
|
||||||
|
|
||||||
configs: ParserConfigs = null;
|
configs: ParserConfigs = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user