summaryrefslogtreecommitdiff
path: root/examples/14-struct-generic
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/14-struct-generic
parent8b1ee9a26a378a4456e800be314ab765be94b368 (diff)
Add custom code to TypeScript output
Diffstat (limited to 'examples/14-struct-generic')
-rw-r--r--examples/14-struct-generic/output/typescript/src/point.ts24
1 files changed, 24 insertions, 0 deletions
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<TPoint> {
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<Line<Point2D>>) {
this.lines = lines;
}
+
+ // Custom area start: LineDrawing2D, body
+ // Custom area end: LineDrawing2D, body
}
export {LineDrawing2D};
@@ -38,6 +47,9 @@ class LineDrawing<TPoint> {
public constructor(lines: ReadonlyArray<Line<TPoint>>) {
this.lines = lines;
}
+
+ // Custom area start: LineDrawing, body
+ // Custom area end: LineDrawing, body
}
export {LineDrawing};
@@ -54,6 +66,9 @@ class BezierCurve<TPoint> {
this.start = start;
this.end = end;
}
+
+ // Custom area start: BezierCurve, body
+ // Custom area end: BezierCurve, body
}
export {BezierCurve};
@@ -70,6 +85,9 @@ class Line<TPoint> {
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