diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-09-04 10:30:23 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-09-04 10:30:23 +0100 |
| commit | 329b73a28689faa776c82a4e33195a05ef8337ad (patch) | |
| tree | 76dff8387f424c88be860bcd01156a96cadf4e9b /hobgoblin/src | |
| parent | bc68be40f1486ed2f450b14cbc3991c36e754456 (diff) | |
Support enums in typescript-types
Diffstat (limited to 'hobgoblin/src')
| -rw-r--r-- | hobgoblin/src/output/lang/typescript/ast.hob | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hobgoblin/src/output/lang/typescript/ast.hob b/hobgoblin/src/output/lang/typescript/ast.hob index 1af5ff2..68aebda 100644 --- a/hobgoblin/src/output/lang/typescript/ast.hob +++ b/hobgoblin/src/output/lang/typescript/ast.hob @@ -92,6 +92,7 @@ enum TypescriptVisibility { sum TypescriptExpression { variant TypescriptBinaryOperation; variant TypescriptCall; + variant TypescriptCast; variant TypescriptConstructedType; variant TypescriptFieldAccess; variant TypescriptNewCall; @@ -117,6 +118,11 @@ struct TypescriptCall { field args: List[TypescriptExpression]; } +struct TypescriptCast { + field value: TypescriptExpression; + field type: TypescriptExpression; +} + struct TypescriptConstructedType { field receiver: TypescriptExpression; field args: List[TypescriptExpression]; |
