Skip to content

refactor: rename root API modules to Types#244

Merged
jderochervlk merged 2 commits into
pre-alphafrom
issue-239-shared-groundwork-pr
Apr 18, 2026
Merged

refactor: rename root API modules to Types#244
jderochervlk merged 2 commits into
pre-alphafrom
issue-239-shared-groundwork-pr

Conversation

@jderochervlk
Copy link
Copy Markdown
Collaborator

Summary

This is the shared-groundwork pass for the package simplification work.

Changes in this PR:

  • rename all root src/*API.res type-holder modules to src/*Types.res
  • rewrite repo references in src and tests to use the renamed root modules
  • add type t and current exports to DOMAPI/Window.res and DOMAPI/Navigator.res
  • preserve the existing folder structure
  • avoid introducing any new include directives

Why

This establishes the baseline naming and module shape for the rest of the simplification work:

  • *Types becomes the source of truth for shared API-local shapes
  • concrete modules can become the ergonomic public entrypoints
  • follow-up slice PRs can focus on unrelated open cleanup, primitive alias cleanup, and moving access away from Global.window / Global.navigator

Validation

Ran:

  • npm run build
  • npm test

The branch still has the existing warning 44 shadowing warnings, but build and tests pass.

@jderochervlk jderochervlk requested review from brnrdog and tsnobip April 18, 2026 12:23
@jderochervlk jderochervlk merged commit fd40382 into pre-alpha Apr 18, 2026
1 check passed
@jderochervlk jderochervlk deleted the issue-239-shared-groundwork-pr branch April 18, 2026 12:39
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.

2 participants