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;