amis-rpc-design/node_modules/rc-util/es/Dom/findDOMNode.d.ts

7 lines
294 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
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;