Skip to content

Move public types to dedicated entry#270

Draft
bcomnes wants to merge 1 commit into
masterfrom
real-type-exports
Draft

Move public types to dedicated entry#270
bcomnes wants to merge 1 commit into
masterfrom
real-type-exports

Conversation

@bcomnes

@bcomnes bcomnes commented Jun 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add a dedicated root types.ts public type entry that emits types.d.ts for @domstack/static/types.js consumers.
  • Remove duplicated public JSDoc typedef re-exports from index.js while keeping runtime exports typed via index.d.ts.
  • Add an internal #types import alias for repo-local type references without relative path climbs.
  • Update docs/examples/test fixtures to import public types from @domstack/static/types.js.
  • Add a v12 migration stub documenting the type entry move.
  • Replace the type export smoke test with a .ts test that exercises the exported types.

Validation

  • npm run clean && npm run test:tsc && npm run build:declaration
  • npm run build
  • npm test

Notes:

  • Cleaned generated declarations/public output after validation so the branch does not include generated artifacts.
  • Kept "types": "./index.d.ts" for the runtime package entry; type-only imports now use @domstack/static/types.js.

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