diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-08-30 13:32:35 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-08-30 13:32:35 +0100 |
| commit | f917d90874048ae27efed68e3f5f8f960c3e6935 (patch) | |
| tree | bd5b736fd0c78003edc4b598bc967d7921242c5a /examples | |
| parent | 83095d5d6d9bd9d3cfed0e4ae504cd56558e6547 (diff) | |
Use const instead of var
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/01-struct/output/typescript/src/point.test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/01-struct/output/typescript/src/point.test.ts b/examples/01-struct/output/typescript/src/point.test.ts index d5e8533..490002e 100644 --- a/examples/01-struct/output/typescript/src/point.test.ts +++ b/examples/01-struct/output/typescript/src/point.test.ts @@ -5,9 +5,9 @@ import {test} from "mocha"; import {Point} from "./point.ts"; test("pointFields", () => { - var point = new Point(10, 25); - var x: number = point.x; - var y: number = point.y; + const point = new Point(10, 25); + const x: number = point.x; + const y: number = point.y; strictEqual(x, 10); strictEqual(y, 25); }); |
