Skip to content

Fix type error in TabsContainerStateInitArg with exactOptionalPropertyTypes#4352

Closed
kkafar wants to merge 1 commit into
mainfrom
@kkafar/fix-type-error-in-tabs-container
Closed

Fix type error in TabsContainerStateInitArg with exactOptionalPropertyTypes#4352
kkafar wants to merge 1 commit into
mainfrom
@kkafar/fix-type-error-in-tabs-container

Conversation

@kkafar

@kkafar kkafar commented Jul 17, 2026

Copy link
Copy Markdown
Member

Summary

  • Fix type error in TabsContainerStateInitArg that surfaced after enabling exactOptionalPropertyTypes: true in tsconfig
  • With exactOptionalPropertyTypes, defaultRouteName?: string only allows the property to be absent — it does not allow explicitly passing undefined. Adding | undefined to the type restores the intended behavior

Test plan

  • yarn check-types passes
  • Verify that callers passing defaultRouteName: undefined explicitly no longer produce a type error

🤖 Generated with Claude Code

`exactOptionalPropertyTypes` to `true`

We allow for `undefined` `defaultRouteName`.
@kkafar kkafar closed this Jul 17, 2026
@kkafar
kkafar deleted the @kkafar/fix-type-error-in-tabs-container branch July 17, 2026 13:16
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