From 0cdd2cd99dbf98958ca5c682660c42451aee4635 Mon Sep 17 00:00:00 2001 From: Arseny Garelyshev Date: Tue, 5 Mar 2024 17:40:12 +0100 Subject: [PATCH] refactor: provide better type for config.interpolation.format --- 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 }