amis-rpc-design/node_modules/rc-util/lib/Dom/findDOMNode.d.ts
2023-10-07 19:42:30 +08:00

7 lines
294 B
TypeScript

import React from 'react';
export declare function isDOM(node: any): node is HTMLElement | SVGElement;
/**
* Return if a node is a DOM node. Else will return by `findDOMNode`
*/
export default function findDOMNode<T = Element | Text>(node: React.ReactInstance | HTMLElement | SVGElement): T;