Skip to content

Make all keys optional in locale types #5811

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Murderlon
Copy link
Member

Ref: #5728 (comment)

Update LocaleStrings type to correctly allow partial locale overrides when used with intersection types.

Previously, LocaleStrings<T> only made T['strings'] partial. When intersected with another type (e.g., StatusBarLocale), TypeScript would still require all properties from the intersected type to be present, preventing true partial overrides for the entire locale object.

@Murderlon Murderlon self-assigned this Jul 7, 2025
Copy link
Contributor

github-actions bot commented Jul 7, 2025

Diff output files
No diff

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.

2 participants