Skip to content

fix(types): preserve permalink on RemixContestEvent#14517

Merged
dylanjeffers merged 2 commits into
mainfrom
fix/remix-contest-permalink-type
Jul 2, 2026
Merged

fix(types): preserve permalink on RemixContestEvent#14517
dylanjeffers merged 2 commits into
mainfrom
fix/remix-contest-permalink-type

Conversation

@dylanjeffers

Copy link
Copy Markdown
Contributor

OverrideProperties<Event, {eventData}> loses the optional permalink property because type-fest's Merge/Simplify chain does not fully distribute through the doubly-nested intersection that Event resolves to. CI is failing with TS2339 on ContestScreen.tsx:223.

Fix: intersect Pick<Event, 'permalink'> explicitly so the type survives and ContestScreen can access contest.permalink without error.

OverrideProperties<Event, {eventData}> loses the optional permalink
property because type-fest's Merge/Simplify chain doesn't fully
distribute through the doubly-nested intersection that Event resolves to.

Intersect Pick<Event, 'permalink'> explicitly so the type survives and
ContestScreen can access contest.permalink without a TS2339 error.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 307f2d5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

permalink was speculatively added to EventSDK and the common Event model
but the API does not return it. Remove it from both the SDK type and the
common model, revert the useRemixContest Pick<Event, 'permalink'> patch,
and drop contest?.permalink from ContestScreen's useCallback dep array.

Fixes TS2339 and the exhaustive-deps lint warning in CI.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dylanjeffers dylanjeffers merged commit ddc74c0 into main Jul 2, 2026
3 checks passed
@dylanjeffers dylanjeffers deleted the fix/remix-contest-permalink-type branch July 2, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant