GetRef<T>: T extends React.Component<any>
    ? T
    : T extends ReactRefComponent<React.RefAttributes<infer RefType>>
        ? RefType
        : never

Type Parameters

  • T extends ReactRefComponent<any> | React.Component<any>

Generated using TypeDoc