(errors: AnyObject)
| 62 | } & MutableState<FormValues, InitialFormValues>; |
| 63 | |
| 64 | const hasAnyError = (errors: AnyObject): boolean => { |
| 65 | return Object.keys(errors).some((key) => { |
| 66 | const value = errors[key]; |
| 67 | |
| 68 | if (value && typeof value === "object" && !(value instanceof Error)) { |
| 69 | return hasAnyError(value); |
| 70 | } |
| 71 | |
| 72 | return typeof value !== "undefined"; |
| 73 | }); |
| 74 | }; |
| 75 | |
| 76 | function convertToExternalFormState< |
| 77 | FormValues extends Record<string, any> = Record<string, any>, |
no outgoing calls
no test coverage detected
searching dependent graphs…