import { getFormData , Event , FormData } from './getFormData' ; export function handleChange < T extends FormData > ( fn ) { return function change ( event ) { const values = getFormData < T > ( event ) ; return fn ( values ) ; } ; }