Skip to content

fix(router-store): re-export RouterStateSelectors from index.ts - #159

Merged
Terrence721 merged 2 commits into
mainfrom
code-review/router-store-index
Aug 19, 2026
Merged

fix(router-store): re-export RouterStateSelectors from index.ts#159
Terrence721 merged 2 commits into
mainfrom
code-review/router-store-index

Conversation

@Terrence721

Copy link
Copy Markdown
Owner

Reviews modules/router-store/src/index.ts as part of the router-store module code-review audit (#38, sub-issue of #32). Second real finding in this module (both real, both fixed).

RouterStateSelectors<V> - the return type of the already-public getRouterSelectors() - was missing from the public barrel, with no way for a consumer to reach it through the package's normal entry point. Every other file's exports were cross-checked and matched exactly. Full write-up and verification steps in the linked issue.

Closes #158

models.ts's RouterStateSelectors<V> - the direct return-type of the
already-public getRouterSelectors<V>() - had no way to reach a
consumer through the package's normal entry point. Cross-checked
every other file's exports against index.ts; everything else matched
exactly, including a correct exclusion (StoreRouterConnectingService
is genuinely internal wiring, confirmed by the module's own tests
importing it from the concrete path rather than the barrel).

Verified: yarn nx build-package router-store (clean), yarn nx test
router-store (156/156, 1 pre-existing skip, 0 type errors), yarn nx
lint router-store (0 errors, 1 pre-existing unrelated warning).

Closes #158
@Terrence721
Terrence721 merged commit 3924407 into main Aug 19, 2026
11 checks passed
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.

Code review: modules/router-store/src/index.ts

1 participant