Skip to content
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

fix: extends type all to the locale type definition in req #10399

Merged
merged 2 commits into from
Jan 6, 2025

Conversation

PatrikKozak
Copy link
Contributor

@PatrikKozak PatrikKozak commented Jan 6, 2025

What?

If you query with all locales using the 'all' value for locales, the req.locale value is 'all' but the type definition only contains the available locales.

Why?

The CustomPayloadRequestProperties.locale property was only being typed as TypedLocale and was not extending 'all'.

How?

Extends type all to the locale type definition in req

Fixes #10244

@PatrikKozak PatrikKozak merged commit eadce5e into main Jan 6, 2025
77 checks passed
@PatrikKozak PatrikKozak deleted the fix/locale-type-all branch January 6, 2025 20:18
Copy link
Contributor

github-actions bot commented Jan 7, 2025

🚀 This is included in version v3.15.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

req.locale type definition does not include 'all'
1 participant