Skip to content

Commit f9bfd55

Browse files
authoredMar 24, 2021
Merge pull request #1284 from pedrodurek/master
Bug fixes
2 parents 83a62a2 + 9aedf85 commit f9bfd55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎ts4.1/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export interface TransProps<
132132
count?: number;
133133
defaults?: string;
134134
i18n?: i18n;
135-
i18nKey?: K;
135+
i18nKey?: K | K[];
136136
ns?: N;
137137
parent?: string | React.ComponentType<any> | null; // used in React.createElement if not null
138138
tOptions?: {};
@@ -158,7 +158,7 @@ type UseTranslationResponse<N extends Namespace> = [TFunction<N>, i18n, boolean]
158158
ready: boolean;
159159
};
160160

161-
type DefaultNamespace<T = 'translation'> = Fallback<string> extends T ? T : string;
161+
type DefaultNamespace<T = 'translation'> = T extends Fallback<string> ? T : string;
162162

163163
export function useTranslation<N extends Namespace = DefaultNamespace>(
164164
ns?: N,

0 commit comments

Comments
 (0)
Please sign in to comment.