diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-08-31 22:56:01 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-08-31 22:56:01 +0100 |
| commit | 30c7a202bbc3928cbc321974e417ef902e719692 (patch) | |
| tree | 65a835ded10f8d9f2403733404bb2fb6e8546df9 /hobgoblin/src | |
| parent | 46005281330e2a001aba50a5c1358d9ae22334ec (diff) | |
Add type alias to TypeScript AST
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 ab305c6..e421996 100644 --- a/hobgoblin/src/output/lang/typescript/ast.hob +++ b/hobgoblin/src/output/lang/typescript/ast.hob @@ -16,6 +16,7 @@ sum TypescriptStatement { variant TypescriptClassDeclaration; variant TypescriptExportNamesStatement; variant TypescriptExpressionStatement; + variant TypescriptTypeAlias; } struct TypescriptClassDeclaration { @@ -33,6 +34,11 @@ struct TypescriptExpressionStatement { field expression: TypescriptExpression; } +struct TypescriptTypeAlias { + field name: TypescriptIdentifier; + field type: TypescriptExpression; +} + // == Class elements == sum TypescriptClassElement { |
