From 713578f93bcbe00ba2a6d28ed61501b560495463 Mon Sep 17 00:00:00 2001 From: Waseem Dahman Date: Sat, 27 Apr 2019 18:59:58 -0400 Subject: [PATCH] Fix formatting --- src/index.d.ts | 4 +--- test/types.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/index.d.ts b/src/index.d.ts index d74a14b..c067d24 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -48,9 +48,7 @@ type StateValues = { type StateValidity = { readonly [A in keyof T]: Maybe }; -type StateErrors = { - readonly [A in keyof T]?: E | string -}; +type StateErrors = { readonly [A in keyof T]?: E | string }; // Inputs diff --git a/test/types.tsx b/test/types.tsx index 0db9b84..37655c7 100644 --- a/test/types.tsx +++ b/test/types.tsx @@ -153,10 +153,10 @@ function CustomErrorTypesWithStateErrors() { colors?: string | I18nError; } - const [formState, input] = useFormState< - FormFields, - FormFieldsErrors - >(initialState, {}); + const [formState, input] = useFormState( + initialState, + {}, + ); if (formState.errors.colors && typeof formState.errors.colors !== 'string') { formState.errors.colors.en;