diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-09-04 15:22:06 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-09-04 15:25:14 +0100 |
| commit | 94ca8de6bc11f194bdf3a0415aad2eb66e222c45 (patch) | |
| tree | 691279348a97897379c03d8c5f66ea63333babb1 /examples/01-struct | |
| parent | 8b1ee9a26a378a4456e800be314ab765be94b368 (diff) | |
Add custom code to TypeScript output
Diffstat (limited to 'examples/01-struct')
| -rw-r--r-- | examples/01-struct/output/typescript/src/point.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/01-struct/output/typescript/src/point.ts b/examples/01-struct/output/typescript/src/point.ts index fccae01..a0bc777 100644 --- a/examples/01-struct/output/typescript/src/point.ts +++ b/examples/01-struct/output/typescript/src/point.ts @@ -1,5 +1,8 @@ // Generated by hobgoblin. +// Custom area start: imports +// Custom area end: imports + /** * A straight line from one point to another. */ @@ -12,6 +15,9 @@ class Line { this.start = start; this.end = end; } + + // Custom area start: Line, body + // Custom area end: Line, body } export {Line}; @@ -28,6 +34,12 @@ class Point { this.x = x; this.y = y; } + + // Custom area start: Point, body + // Custom area end: Point, body } export {Point}; + +// Custom area start: body +// Custom area end: body |
