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/point.ts | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'examples/14-struct-generic') diff --git a/examples/14-struct-generic/output/typescript/src/point.ts b/examples/14-struct-generic/output/typescript/src/point.ts index 4088b92..f3ecdec 100644 --- a/examples/14-struct-generic/output/typescript/src/point.ts +++ b/examples/14-struct-generic/output/typescript/src/point.ts @@ -1,5 +1,8 @@ // Generated by hobgoblin. +// Custom area start: imports +// Custom area end: imports + /** * A set of drawings. */ @@ -12,6 +15,9 @@ class OwnedLineDrawing { this.drawing = drawing; this.owner = owner; } + + // Custom area start: OwnedLineDrawing, body + // Custom area end: OwnedLineDrawing, body } export {OwnedLineDrawing}; @@ -25,6 +31,9 @@ class LineDrawing2D { public constructor(lines: ReadonlyArray>) { this.lines = lines; } + + // Custom area start: LineDrawing2D, body + // Custom area end: LineDrawing2D, body } export {LineDrawing2D}; @@ -38,6 +47,9 @@ class LineDrawing { public constructor(lines: ReadonlyArray>) { this.lines = lines; } + + // Custom area start: LineDrawing, body + // Custom area end: LineDrawing, body } export {LineDrawing}; @@ -54,6 +66,9 @@ class BezierCurve { this.start = start; this.end = end; } + + // Custom area start: BezierCurve, body + // Custom area end: BezierCurve, body } export {BezierCurve}; @@ -70,6 +85,9 @@ class Line { this.start = start; this.end = end; } + + // Custom area start: Line, body + // Custom area end: Line, body } export {Line}; @@ -86,6 +104,12 @@ class Point2D { this.x = x; this.y = y; } + + // Custom area start: Point2D, body + // Custom area end: Point2D, body } export {Point2D}; + +// Custom area start: body +// Custom area end: body -- cgit v1.2.3