-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Compiling the following type results in a syntax error:
Codegen.TypeScriptToModel.Generate(`export type T = [string, ...string[]]`);The thrown error:
...Type.Rest(string[])
^
SyntaxError: Unexpected token ']'
The TypeScript type is also a generated one (from JSON schema, where the compiler defines a list with minItems: 1 like this), so I can probably find a workaround by relaxing the JSON schema.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels