forwardRef
ref で扱うインスタンスの型 と コンポーネントの Props の型 を渡せる
const Component = forwardRef<HTMLButtonElement, ButtonProps>((props, ref) => {}
https://zenn.dev/misuken/articles/d503c45c92aa70
TypeScript
types 型定義