From 96205f15ff82af30c84bf3e74a156e70d860eeee Mon Sep 17 00:00:00 2001 From: JounQin Date: Mon, 17 Sep 2018 17:56:45 +0800 Subject: [PATCH] [react-dom] there is no type named `Text` It should be string instead. --- types/react-dom/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/react-dom/index.d.ts b/types/react-dom/index.d.ts index 518c0c617c..c043439768 100644 --- a/types/react-dom/index.d.ts +++ b/types/react-dom/index.d.ts @@ -5,6 +5,7 @@ // Microsoft // MartynasZilinskas // Josh Rutherford +// JounQin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -16,7 +17,7 @@ import { DOMAttributes, DOMElement, ReactNode, ReactPortal } from 'react'; -export function findDOMNode(instance: ReactInstance): Element | null | Text; +export function findDOMNode(instance: ReactInstance): Element | string | null; export function unmountComponentAtNode(container: Element): boolean; export function createPortal(children: ReactNode, container: Element, key?: null | string): ReactPortal;