forked from AILHC/EasyGameFrameworkOpen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
affects: @ailhc/excel2all 1. 修复ts声明生成bug 2. 完善日志输出 3. 完善测试
- Loading branch information
Showing
25 changed files
with
253 additions
and
399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
`excell2all` | ||
`excel2all` | ||
|
||
excel配置表转换工具 | ||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
76 changes: 76 additions & 0 deletions
76
tool-packages/excel2all/__test__/test-export/dts/tableMap.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
interface ITBase<T> { [key:string]:T} | ||
interface IT_TableMap { | ||
readonly TableTypeSetting?: ITBase<IT_TableTypeSetting>; | ||
readonly ObjTypeSetting?: IT_ObjTypeSetting; | ||
readonly MergeTableSetting?: ITBase<IT_MergeTableSetting>; | ||
} | ||
interface IT_TableTypeSetting { | ||
/** 主键 */ | ||
readonly id?: number; | ||
/** 数字 */ | ||
readonly field_int?: number; | ||
/** 数字数组 */ | ||
readonly field_int_array?: number[]; | ||
/** 字符串 */ | ||
readonly field_string?: string; | ||
/** 字符串数组 */ | ||
readonly field_string_array?: string[]; | ||
/** JSON */ | ||
readonly field_json?: any; | ||
readonly obj?: { | ||
/** 多列对象:数字字段 */ | ||
readonly obj_field_int?: number; | ||
/** 字符串字段 */ | ||
readonly obj_field_string?: string; | ||
/** 数字数组字段 */ | ||
readonly obj_field_int_array?: number[]; | ||
/** 字符串数组字段 */ | ||
readonly obj_field_string_array?: string[]; | ||
/** json字段 */ | ||
readonly obj_field_json?: any; | ||
} | ||
} | ||
interface IT_ObjTypeSetting { | ||
/** 数字 */ | ||
readonly Prop1?: number; | ||
/** 数字数组 */ | ||
readonly Prop2?: number[]; | ||
/** 字符串 */ | ||
readonly Prop3?: string; | ||
/** 字符串数组 */ | ||
readonly Prop4?: string[]; | ||
/** json对象 */ | ||
readonly Prop5?: any; | ||
readonly MyObject?: { | ||
/** 嵌套对象测试:主键id */ | ||
readonly id?: number; | ||
/** 名字 */ | ||
readonly name?: string; | ||
} | ||
} | ||
interface IT_MergeTableSetting { | ||
/** 主键 */ | ||
readonly id?: number; | ||
/** 数字 */ | ||
readonly field_int?: number; | ||
/** 数字数组 */ | ||
readonly field_int_array?: number[]; | ||
/** 字符串 */ | ||
readonly field_string?: string; | ||
/** 字符串数组 */ | ||
readonly field_string_array?: string[]; | ||
/** JSON */ | ||
readonly field_json?: any; | ||
readonly obj?: { | ||
/** 多列对象:数字字段 */ | ||
readonly obj_field_int?: number; | ||
/** 字符串字段 */ | ||
readonly obj_field_string?: string; | ||
/** 数字数组字段 */ | ||
readonly obj_field_int_array?: number[]; | ||
/** 字符串数组字段 */ | ||
readonly obj_field_string_array?: string[]; | ||
/** json字段 */ | ||
readonly obj_field_json?: any; | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.