Blame view

天文台pc/tianwentai-ui/node_modules/@mui/utils/getReactElementRef/getReactElementRef.d.ts 381 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
  import * as React from 'react';
  /**
   * Returns the ref of a React element handling differences between React 19 and older versions.
   * It will throw runtime error if the element is not a valid React element.
   *
   * @param element React.ReactElement
   * @returns React.Ref<any> | null
   */
  export default function getReactElementRef(element: React.ReactElement): React.Ref<any> | null;