diff --git a/types/react/index.d.ts b/types/react/index.d.ts index ed0c1d90ce..c018d39290 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -777,9 +777,9 @@ declare namespace React { // will show `Memo(${Component.displayName || Component.name})` in devtools by default, // but can be given its own specific name - interface MemoExoticComponent> extends NamedExoticComponent> { + type MemoExoticComponent> = NamedExoticComponent> & { readonly type: T; - } + }; function memo

( Component: SFC

, @@ -790,9 +790,9 @@ declare namespace React { propsAreEqual?: (prevProps: Readonly>, nextProps: Readonly>) => boolean ): MemoExoticComponent; - interface LazyExoticComponent> extends ExoticComponent> { + type LazyExoticComponent> = ExoticComponent> & { readonly _result: T; - } + }; function lazy>( factory: () => Promise<{ default: T }>