Skip to content

refactor: migrate web client from TypeScript to JavaScript with JSDoc - #45

Merged
tiennm99 merged 1 commit into
mainfrom
ts-to-js-migration
Aug 18, 2026
Merged

tiennm99 merged 1 commit into
mainfrom
ts-to-js-migration

Conversation

@tiennm99

Copy link
Copy Markdown
Member

Converts the Svelte+Phaser web client (19 .ts files + 7 .svelte TS script blocks) to plain JavaScript with JSDoc. Three tsconfigs collapse into one strict checkJs jsconfig; new check script runs svelte-check against it (the old project-references root tsconfig silently swallowed 10+ real type errors — now annotated with zero-behavior casts and actually checked). Gates: svelte-check 0 errors/0 warnings (199 files), tests 14/14, build green. Repo was unarchived only for this migration and will be re-archived after merge.

Convert all .ts and <script lang="ts"> Svelte files under client/web to
.js/.svelte with JSDoc type annotations, replacing tsconfig project
references with a single jsconfig.json (strict + checkJs) and adding a
svelte-check `check` script. No runtime behavior changes; a handful of
pre-existing strictness gaps (missing vite/client ambient types, Phaser
scene fields without initializers, a WebSocket ArrayBuffer generic
mismatch) are annotated/cast rather than altered so the new check gate
is green without changing logic.
@tiennm99
tiennm99 merged commit 6e87511 into main Aug 18, 2026
@tiennm99
tiennm99 deleted the ts-to-js-migration branch August 31, 2026 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant