This repository was archived by the owner on May 13, 2026. It is now read-only.
refactor(constants/redux): unexport 2 internal interfaces - #1019
Merged
Conversation
SchemaCacheMeta and DefaultSchemaState are used only inside redux.ts (as the type of the `cache` field and the annotation on DEFAULT_SCHEMA_STATE, respectively); the constants barrel doesn't re-export them. Continues the dead-export audit pattern from PRs #1014, #1015, #1016, #1017, and #1018. Interfaces are preserved as file-local typing. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SchemaCacheMetaandDefaultSchemaStateinsrc/server/static-react/src/constants/redux.tsare typed only inside that file —cache: SchemaCacheMetaat line 67 andDEFAULT_SCHEMA_STATE: DefaultSchemaStateat line 74. Theconstants/index.tsbarrel does not re-export either symbol, and no other file insrc/server/static-react/srcreferences them.exportkeyword on both interface declarations (2 line modifications, 1 file). Interfaces are preserved as file-local typing forDEFAULT_SCHEMA_STATE.Test plan
npm run typecheck— cleannpm test— 788 tests, all passgrepconfirms noexport interface SchemaCacheMeta|DefaultSchemaStatehits remain; in-file uses (cache: SchemaCacheMeta,DEFAULT_SCHEMA_STATE: DefaultSchemaState) preserved