summaryrefslogtreecommitdiff
path: root/examples/03-sum
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-09-04 15:22:06 +0100
committerMichael Williamson <mike@zwobble.org>2026-09-04 15:25:14 +0100
commit94ca8de6bc11f194bdf3a0415aad2eb66e222c45 (patch)
tree691279348a97897379c03d8c5f66ea63333babb1 /examples/03-sum
parent8b1ee9a26a378a4456e800be314ab765be94b368 (diff)
Add custom code to TypeScript output
Diffstat (limited to 'examples/03-sum')
-rw-r--r--examples/03-sum/output/typescript/src/shapes.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/03-sum/output/typescript/src/shapes.ts b/examples/03-sum/output/typescript/src/shapes.ts
index 88a476f..9758cd6 100644
--- a/examples/03-sum/output/typescript/src/shapes.ts
+++ b/examples/03-sum/output/typescript/src/shapes.ts
@@ -1,5 +1,8 @@
// Generated by hobgoblin.
+// Custom area start: imports
+// Custom area end: imports
+
type Shape = Rectangle | Triangle;
export {type Shape};
@@ -17,6 +20,9 @@ class Rectangle {
this.width = width;
this.height = height;
}
+
+ // Custom area start: Rectangle, body
+ // Custom area end: Rectangle, body
}
export {Rectangle};
@@ -34,6 +40,12 @@ class Triangle {
this.width = width;
this.height = height;
}
+
+ // Custom area start: Triangle, body
+ // Custom area end: Triangle, body
}
export {Triangle};
+
+// Custom area start: body
+// Custom area end: body