From 94ca8de6bc11f194bdf3a0415aad2eb66e222c45 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 4 Sep 2026 15:22:06 +0100 Subject: Add custom code to TypeScript output --- .../output/typescript/src/arithmetic.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'examples/12-inductive-data-types') diff --git a/examples/12-inductive-data-types/output/typescript/src/arithmetic.ts b/examples/12-inductive-data-types/output/typescript/src/arithmetic.ts index 9599968..486ac66 100644 --- a/examples/12-inductive-data-types/output/typescript/src/arithmetic.ts +++ b/examples/12-inductive-data-types/output/typescript/src/arithmetic.ts @@ -1,5 +1,8 @@ // Generated by hobgoblin. +// Custom area start: imports +// Custom area end: imports + type Expression = Add | Const; export {type Expression}; @@ -17,6 +20,9 @@ class Add { this.left = left; this.right = right; } + + // Custom area start: Add, body + // Custom area end: Add, body } export {Add}; @@ -31,6 +37,12 @@ class Const { public constructor(value: number) { this.value = value; } + + // Custom area start: Const, body + // Custom area end: Const, body } export {Const}; + +// Custom area start: body +// Custom area end: body -- cgit v1.2.3