From 148ba5f1c1434398f51a919cc37d712d141a7abf Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 4 Apr 2023 00:09:17 -0400 Subject: [PATCH] fix(striker-ui): resolve Message in FormUtils --- striker-ui/types/FormUtils.d.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/striker-ui/types/FormUtils.d.ts b/striker-ui/types/FormUtils.d.ts index 5eed5d1b..b65f506c 100644 --- a/striker-ui/types/FormUtils.d.ts +++ b/striker-ui/types/FormUtils.d.ts @@ -29,8 +29,14 @@ type FormUtils = { setFormValidity: import('react').Dispatch< import('react').SetStateAction> >; - setMessage: (key: keyof M, message?: Message) => void; - setMessageRe: (re: RegExp, message?: Message) => void; + setMessage: ( + key: keyof M, + message?: import('../components/MessageBox').Message, + ) => void; + setMessageRe: ( + re: RegExp, + message?: import('../components/MessageBox').Message, + ) => void; setValidity: (key: keyof M, value?: boolean) => void; setValidityRe: (re: RegExp, value?: boolean) => void; unsetKey: (key: keyof M) => void;