type ValidatorArg = object | string | undefined | null; type ValidatorFunc = (obj: ValidatorArg) => (string | undefined); type ValidatorMap = Record;