import type { Control, FieldValues, UseFormSetValue, UseFormWatch } from "react-hook-form"; export function asAnyControl( control: Control ): Control { return control as Control; } export function asAnySetValue( setValue: UseFormSetValue ): UseFormSetValue { return setValue as UseFormSetValue; } export function asAnyWatch( watch: UseFormWatch ): UseFormWatch { return watch as UseFormWatch; }