diff --git a/src/@types/i18next.d.ts b/src/@types/i18next.d.ts index c7bd576140e..0eaa1e6ff0f 100644 --- a/src/@types/i18next.d.ts +++ b/src/@types/i18next.d.ts @@ -2,5 +2,7 @@ import type { TOptions } from "i18next"; // Module declared to make referencing keys in the localization files type-safe. declare module "i18next" { - type TFunction = (key: string | string[], options?: TOptions & Record) => string + interface TFunction { + (key: string | string[], options?: TOptions & Record): string; + } }