diff --git a/src/06-challenges/34-internationalization.solution.ts b/src/06-challenges/34-internationalization.solution.ts index b5ba210..334d8b5 100644 --- a/src/06-challenges/34-internationalization.solution.ts +++ b/src/06-challenges/34-internationalization.solution.ts @@ -16,7 +16,9 @@ const translate = < >( translations: TTranslations, key: TKey, - ...args: TDynamicKeys extends string + ...args: [TDynamicKeys] extends [never] + ? [] + : TDynamicKeys extends string ? [dynamicArgs: Record] : [] ) => {