5 lines
180 B
TypeScript
5 lines
180 B
TypeScript
type TypeStructure =
|
|
| ["or", TypeStructure[]] // problem is only here, when using array
|
|
| ["string"]
|
|
| ["number"]
|
|
| ["list", TypeStructure] // with just this it is ok
|