Skip to content

Commit

Permalink
Ignore type error for i18n function usage with spread
Browse files Browse the repository at this point in the history
  • Loading branch information
matiboux committed Mar 10, 2024
1 parent 9dfb6ac commit 818585b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/app/src/i18n/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ type UnionRecursiveTail<Union, Rslt extends any[] = []> =
function i18nFactory(locale: OverloadedParameters<typeof i18n>[0] | undefined)
{
return (...args: UnionRecursiveTail<OverloadedParameters<typeof i18n>>) =>
i18n.apply(i18n, [locale ?? defaultLocale, ...args])
i18n.apply(i18n, [locale ?? defaultLocale, ...args] as any)
}

export default i18n
Expand Down

0 comments on commit 818585b

Please sign in to comment.