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 --- examples/03-sum/output/typescript/src/shapes.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'examples/03-sum') 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 -- cgit v1.2.3