Skip to content

chore: remove dead types and un-export internal query aliases#105

Merged
braden-w merged 3 commits intomainfrom
braden-w/remove-dead-types-clean
Mar 3, 2026
Merged

chore: remove dead types and un-export internal query aliases#105
braden-w merged 3 commits intomainfrom
braden-w/remove-dead-types-clean

Conversation

@braden-w
Copy link
Collaborator

@braden-w braden-w commented Mar 3, 2026

Removes unused exported types and un-exports internal type aliases that were never meant to be part of the public API. This shrinks the public surface area and trims ~370 lines of verbose JSDoc that was duplicating information already visible in the code.

Three categories of cleanup:

  • Dead types removed: ExtractOkFromResult, ExtractErrFromResult (result), StandardFullSchemaV1 (standard-schema) — zero usage across the codebase
  • Internal aliases un-exported: DefineQueryInput, DefineQueryOutput, DefineMutationInput, DefineMutationOutput — these were implementation details of createQueryFactories, not consumer-facing. Type definitions inlined at their single usage site.

The query module's JSDoc was also trimmed from tutorial-style documentation to concise single-line summaries. The verbose docs were adding noise without value — the types and code examples in the createQueryFactories docstring already communicate usage clearly.

braden-w added 3 commits March 3, 2026 09:31
These utility types were never used anywhere in the library or in
downstream consumers (epicenter). Users can achieve the same with
TypeScript's built-in Extract<> if needed.
This type combining StandardSchemaV1 and StandardJSONSchemaV1 was
exported but never used in the library or any downstream consumers.
Users can intersect the two types themselves if needed.
DefineQueryInput, DefineQueryOutput, DefineMutationInput, and
DefineMutationOutput are implementation details used only within
createQueryFactories. No consumer ever imports them by name — they
were already excluded from the public barrel export in index.ts.
@braden-w braden-w force-pushed the braden-w/remove-dead-types-clean branch from f923c4c to a38bc4f Compare March 3, 2026 17:57
@braden-w braden-w merged commit ccacc17 into main Mar 3, 2026
3 checks passed
@braden-w braden-w deleted the braden-w/remove-dead-types-clean branch March 3, 2026 17:58
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