Skip to content

Commit cc5075c

Browse files
authoredOct 20, 2022
add definition type of symbol (YousefED#509)
1 parent 1b65adb commit cc5075c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎typescript-json-schema.ts

+2
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,8 @@ export class JsonSchemaGenerator {
671671
definition.type = isInteger ? "integer" : "number";
672672
} else if (flags & ts.TypeFlags.Boolean) {
673673
definition.type = "boolean";
674+
} else if (flags & ts.TypeFlags.ESSymbol) {
675+
definition.type = "symbol";
674676
} else if (flags & ts.TypeFlags.Null) {
675677
definition.type = "null";
676678
} else if (flags & ts.TypeFlags.Undefined || propertyTypeString === "void") {

0 commit comments

Comments
 (0)