TypeScript null 类型导出 为 null 类型声明

This commit is contained in:
2021-01-25 18:16:50 +08:00
parent 10341ed46a
commit 1c9744eba6

View File

@@ -57,6 +57,9 @@ export class TypeScriptExporter extends TableExporter {
} }
type += ignore_root ? '' : this.indent_text('}', indent); type += ignore_root ? '' : this.indent_text('}', indent);
} break; } break;
case DataType.null:
type = "null";
break;
default: default:
type = "any"; type = "any";
break; break;