diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-08-30 11:32:18 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-08-30 13:28:46 +0100 |
| commit | cfb59a62fbdcbecb3b842e3df0bea3b6d159007c (patch) | |
| tree | cc2a19bd88a58142bd3934c7f7d82f03de06d071 /examples/01-struct | |
| parent | a7d5133ac7cc82e3826f90d2e5f1ca5cd3f08676 (diff) | |
Add explicit visibility to TypeScript AST
Diffstat (limited to 'examples/01-struct')
| -rw-r--r-- | examples/01-struct/output/typescript/src/point.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/01-struct/output/typescript/src/point.ts b/examples/01-struct/output/typescript/src/point.ts index 0e843ce..5dc76ee 100644 --- a/examples/01-struct/output/typescript/src/point.ts +++ b/examples/01-struct/output/typescript/src/point.ts @@ -4,11 +4,11 @@ * A straight line from one point to another. */ class Line { - start: Point; + public start: Point; - end: Point; + public end: Point; - constructor(start: Point, end: Point) { + public constructor(start: Point, end: Point) { this.start = start; this.end = end; } @@ -20,11 +20,11 @@ export {Line}; * A 2D point. */ class Point { - x: number; + public x: number; - y: number; + public y: number; - constructor(x: number, y: number) { + public constructor(x: number, y: number) { this.x = x; this.y = y; } |
