Parent: #237 ## Summary Land the repo-wide groundwork required before any parallel slice work can start. ## Scope - rename every root `src/*API.res` type-holder file to `src/*Types.res` - rewrite source and test references from root `*API` modules to root `*Types` modules - establish the concrete-module pattern in the cross-cutting whole-object modules - add `type t = ... = { ... }` and `current` accessors in `Window` and `Navigator` - verify that the groundwork does not add any new `include` directives ## Files - every root `src/*API.res` file listed in [#237](https://github.com/rescript-lang/experimental-rescript-webapi/issues/237) - `src/**/*.res` - `tests/**/*.res` - `src/DOMAPI/Window.res` - `src/DOMAPI/Navigator.res` ## Checklist - [ ] Capture the pre-rename surface with `find src -maxdepth 1 -name '*API.res' | sort` - [ ] Rename every root type-holder file from `*API` to `*Types` - [ ] Rewrite source and test references to the renamed root modules - [ ] Add `type t` and `current` in `Window` and `Navigator` - [ ] Verify that the diff adds no new `include` directives - [ ] Run `npm run build` ## Acceptance Criteria - no root `src/*API.res` type-holder files remain - root `*Types` files compile and replace the previous root `*API` modules - `Window.current` and `Navigator.current` exist - the groundwork diff introduces no new `include` directives - `npm run build` passes ## Notes This issue must land before the parallel slice issues start.
Activity
jderochervlk commentedon Apr 18, 2026
Codex is starting work on this issue.
Plan of attack:
*APItype-holder modules to*TypesWindow.current/Navigator.currentconcrete-module surfaceincludedirectives are introducednpm run buildI’ll report back here if I hit a blocker or if the task scope needs adjustment.
jderochervlk commentedon Apr 18, 2026
Codex completed the shared-groundwork pass on local branch
issue-239-shared-groundwork.Local commit:
744664f(refactor: rename root API modules to Types)Completed in this pass:
src/*API.restype-holder modules tosrc/*Types.ressrcandteststo the renamed root modulestype tandcurrentexports toDOMAPI/Window.resandDOMAPI/Navigator.resincludedirectives were introducedVerification:
npm run buildnpm testThe remaining simplification work stays in the follow-up slice issues and final integration issue.
jderochervlk commentedon Apr 18, 2026
Merged: #244