I'm really a beginner at typescript world and, I'm currently using React Table library that has no types by default on documentation.
So, I would like to ask your help to add the types to IndeterminateCheckbox method.
const IndeterminateCheckbox = React.forwardRef(
({ indeterminate, ...rest }, ref) => {
const defaultRef = React.useRef()
const resolvedRef = ref || defaultRef
React.useEffect(() => {
resolvedRef.current.indeterminate = indeterminate
}, [resolvedRef, indeterminate])
return (
<>
<input type="checkbox" ref={resolvedRef} {...rest} />
</>
)
}
)
Here is the link to sandbox from React Table docs: https://codesandbox.io/s/github/tannerlinsley/react-table/tree/master/examples/row-selection-and-pagination?from-embed=&file=/src/App.js:613-1010
My second question is: Where can I find the types and maybe add them by myself?