From de38ab1b5375cd7d7cf77940195717f5b2930860 Mon Sep 17 00:00:00 2001 From: Marwin Hormiz Date: Tue, 19 Nov 2024 15:49:00 +0100 Subject: [PATCH] fix: LabelFunction type error when merging custom keys --- packages/payload/src/config/types.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/payload/src/config/types.ts b/packages/payload/src/config/types.ts index 30ef38aec14..1d0fda06680 100644 --- a/packages/payload/src/config/types.ts +++ b/packages/payload/src/config/types.ts @@ -1,4 +1,5 @@ import type { + DefaultTranslationKeys, DefaultTranslationsObject, I18nClient, I18nOptions, @@ -493,7 +494,11 @@ export type LocalizationConfig = Prettify< LocalizationConfigWithLabels | LocalizationConfigWithNoLabels > -export type LabelFunction = ({ t }: { t: TFunction }) => string +export type LabelFunction = ({ + t, +}: { + t: TFunction +}) => string export type StaticLabel = Record | string