Skip to content

Commit

Permalink
ReactNode should be prefixed with React (#1481)
Browse files Browse the repository at this point in the history
ReactNode was incorrectly added in the #1480 without React prefix - breaks tsc compilation, unless skipLibCheck is set.
  • Loading branch information
high1 committed Apr 10, 2022
1 parent 82233f5 commit 4aecf5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ts4.1/index.d.ts
Expand Up @@ -228,15 +228,15 @@ export type TFuncReturn<
export interface TFunction<N extends Namespace = DefaultNamespace, TKPrefix = undefined> {
<
TKeys extends TFuncKey<N, TKPrefix> | TemplateStringsArray extends infer A ? A : never,
TDefaultResult extends TFunctionResult | ReactNode = string,
TDefaultResult extends TFunctionResult | React.ReactNode = string,
TInterpolationMap extends object = StringMap
>(
key: TKeys | TKeys[],
options?: TOptions<TInterpolationMap> | string,
): TFuncReturn<N, TKeys, TDefaultResult, TKPrefix>;
<
TKeys extends TFuncKey<N, TKPrefix> | TemplateStringsArray extends infer A ? A : never,
TDefaultResult extends TFunctionResult | ReactNode = string,
TDefaultResult extends TFunctionResult | React.ReactNode = string,
TInterpolationMap extends object = StringMap
>(
key: TKeys | TKeys[],
Expand Down

0 comments on commit 4aecf5c

Please sign in to comment.