Skip to content

Fix declaration order in Number formatting with options ResourceKeys must be before OptionsType #2205

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

Merged
merged 1 commit into from
Jun 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/vue-i18n/src/vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -604,15 +604,15 @@ declare module 'vue' {
$d<
Value extends number | Date = number,
Key extends string = string,
OptionsType = DateTimeOptions<Key | ResourceKeys>,
DefinedDateTimeFormat extends
RemovedIndexResources<DefineDateTimeFormat> = RemovedIndexResources<DefineDateTimeFormat>,
Keys = IsEmptyObject<DefinedDateTimeFormat> extends false
? PickupFormatPathKeys<{
[K in keyof DefinedDateTimeFormat]: DefinedDateTimeFormat[K]
}>
: never,
ResourceKeys extends Keys = IsNever<Keys> extends false ? Keys : never
ResourceKeys extends Keys = IsNever<Keys> extends false ? Keys : never,
OptionsType = DateTimeOptions<Key | ResourceKeys>
>(
value: Value,
options: OptionsType,
Expand Down Expand Up @@ -670,15 +670,15 @@ declare module 'vue' {
*/
$n<
Key extends string = string,
OptionsType = NumberOptions<Key | ResourceKeys>,
DefinedNumberFormat extends
RemovedIndexResources<DefineDateTimeFormat> = RemovedIndexResources<DefineDateTimeFormat>,
Keys = IsEmptyObject<DefinedNumberFormat> extends false
? PickupFormatPathKeys<{
[K in keyof DefinedNumberFormat]: DefinedNumberFormat[K]
}>
: never,
ResourceKeys extends Keys = IsNever<Keys> extends false ? Keys : never
ResourceKeys extends Keys = IsNever<Keys> extends false ? Keys : never,
OptionsType = NumberOptions<Key | ResourceKeys>
>(
value: number,
options: OptionsType
Expand Down