Skip to content

CORE19: Correct public type documentation and examples - #31

Merged
YLfjuk merged 3 commits into
mainfrom
t3/core19-tsdoc-example-fixes
Nov 16, 2026
Merged

YLfjuk merged 3 commits into
mainfrom
t3/core19-tsdoc-example-fixes

Conversation

@YLfjuk

@YLfjuk YLfjuk commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Correct public type documentation that described shallow omission as recursive, used nonexistent literal helpers, treated every union as disjoint, and marked supported function this parameters as unsupported. Remove the incomplete literal pseudo-code and misleading inverse claims. Type algorithms and APIs are unchanged.

Add two owning-spec regressions for nested omission and object intersections, plus a patch changeset for the consumer-facing corrections. Leave the already-correct union helper and Toggle docs, packaging, tooling, website, README, and JSON work untouched.

Validation: TypeScript 7 package test compilation; five extracted TSDoc statements checked against their documented results in a temporary fixture; focused Vitest run (112 passed, 1 existing todo, no type errors); targeted oxlint and oxfmt; git diff --check. Node 24.19.0, pnpm 11.22.0. Executable TSDoc tooling remains undecided; no dependency added. Independent review pending.

Base: origin/main at 18ce908.

@changeset-bot

changeset-bot Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7906e45

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@ylfjuk-core/types Patch
@ylfjuk/core Patch
@ylfjuk-core/utils Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment thread packages/types/src/is-disjoint-union.ts Outdated

/**
* @see {@link UnionToIntersection}
* Checks whether the intersection produced by {@link UnionToIntersection} is `never`.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This just says what the implementation is verbatim...

Comment thread packages/types/src/mask-literals.ts Resolved
@YLfjuk
YLfjuk marked this pull request as ready for review November 16, 2026 17:30
@YLfjuk
YLfjuk merged commit 5fc73ab into main Nov 16, 2026
1 check passed
@YLfjuk
YLfjuk deleted the t3/core19-tsdoc-example-fixes branch November 16, 2026 17:30
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