diff options
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; } |
