From 7b50ec5346cc7ea6bd6772b61c29af8cf08a610d Mon Sep 17 00:00:00 2001 From: Arseny Garelyshev Date: Tue, 5 Mar 2024 17:56:35 +0100 Subject: [PATCH] refactor: provide better type for config.interpolation.format (#1194) --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index fa4bd7c..a0cbdce 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -74,7 +74,7 @@ export interface I18nConfig extends NextI18nConfig { revalidate?: number pagesInDir?: string interpolation?: { - format?: Function + format?: (value: TranslationQuery[string], format: any, lang: string | undefined) => string prefix?: string suffix?: string }