獲取所有 key 的 union with react hook form

可以透過 Path + Schema type

import { Path } from 'react-hook-form';
 
type keys = Path<Schema>
 

image 20.png