fix(striker-ui): resolve Message in FormUtils

main
Tsu-ba-me 2 years ago
parent 0bdc5dd44e
commit 148ba5f1c1
  1. 10
      striker-ui/types/FormUtils.d.ts

@ -29,8 +29,14 @@ type FormUtils<M extends MapToInputTestID> = {
setFormValidity: import('react').Dispatch< setFormValidity: import('react').Dispatch<
import('react').SetStateAction<FormValidity<M>> import('react').SetStateAction<FormValidity<M>>
>; >;
setMessage: (key: keyof M, message?: Message) => void; setMessage: (
setMessageRe: (re: RegExp, message?: Message) => void; 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; setValidity: (key: keyof M, value?: boolean) => void;
setValidityRe: (re: RegExp, value?: boolean) => void; setValidityRe: (re: RegExp, value?: boolean) => void;
unsetKey: (key: keyof M) => void; unsetKey: (key: keyof M) => void;

Loading…
Cancel
Save