We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c98db6c commit a03d6ceCopy full SHA for a03d6ce
src/i18n/types.ts
@@ -47,5 +47,5 @@ export type TranslationKey<TNamespace> = TNamespace extends TranslationNamespace
47
48
export interface TranslateFunction<TNamespace = undefined> {
49
(key: TranslationKey<TNamespace>, ...args: Exclude<Primitive, symbol>[]): string;
50
- (translations: { [L in Language]: string }, ...args: Exclude<Primitive, symbol>[]): string;
+ (translations: { [L in Language]?: string }, ...args: Exclude<Primitive, symbol>[]): string;
51
}
0 commit comments