From 596e14d6d1ac32c5f0aff01ddff6def832d63f7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Guillot?= Date: Tue, 6 Sep 2016 14:55:08 +0200 Subject: [PATCH] error can be anything, you decide I was wrong. 'Error' is whatever YOUR validate and asyncValidate functions will return. --- redux-form/redux-form.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redux-form/redux-form.d.ts b/redux-form/redux-form.d.ts index e0fd8ead8d..44fdf211e2 100644 --- a/redux-form/redux-form.d.ts +++ b/redux-form/redux-form.d.ts @@ -39,7 +39,7 @@ declare module 'redux-form' { * The error for this field if its value is not passing validation. Both * synchronous and asynchronous validation errors will be reported here. */ - error?: string[]; + error?: any; /** * The value for this field as supplied in initialValues to the form. @@ -163,7 +163,7 @@ declare module 'redux-form' { * result from the synchronous validation function, the asynchronous * validation, or the rejected promise from onSubmit. */ - error?: string[]; + error?: any; /** * The form data, in the form { field1: , field2: }. The