export type Errors = {[K in keyof T]: boolean} export type Validators = (fields: T, submitting: boolean) => Errors