-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Using a enum with a null value as shown here throws.
TypeError: Cannot destructure property 'properties' of 'node' as it is null.
at tsObjectType (file:///home/ava/peach-front/node_modules/core-types-ts/dist/lib/core-types-to-ts.js:205:13)
at tsConstType (file:///home/ava/peach-front/node_modules/core-types-ts/dist/lib/core-types-to-ts.js:185:31)
at file:///home/ava/peach-front/node_modules/core-types-ts/dist/lib/core-types-to-ts.js:139:30
at Array.map (<anonymous>)
at tsType (file:///home/ava/peach-front/node_modules/core-types-ts/dist/lib/core-types-to-ts.js:139:18)
at tsTypeAndOrSchema (file:///home/ava/peach-front/node_modules/core-types-ts/dist/lib/core-types-to-ts.js:109:16)
at file:///home/ava/peach-front/node_modules/core-types-ts/dist/lib/core-types-to-ts.js:100:76
at Array.map (<anonymous>)
at tsTypeUnion (file:///home/ava/peach-front/node_modules/core-types-ts/dist/lib/core-types-to-ts.js:100:48)
at tsTypeAndOr (file:///home/ava/peach-front/node_modules/core-types-ts/dist/lib/core-types-to-ts.js:115:16)
{
"enum": ["red", "amber", "green", null, 42]
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels