solid-hook-form 2.5.2 → 2.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.d.ts +1 -1
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -98,7 +98,7 @@ type SetValue<F extends FormValues> = (name: Path<F>, value: FieldPathValue<F, P
|
|
|
98
98
|
type TriggerOptions = {
|
|
99
99
|
shouldFocus?: boolean;
|
|
100
100
|
};
|
|
101
|
-
type Trigger<F extends FormValues> = (name?: Path<F> | Path<F>[], options?: TriggerOptions) => void
|
|
101
|
+
type Trigger<F extends FormValues> = (name?: Path<F> | Path<F>[], options?: TriggerOptions) => Promise<void>;
|
|
102
102
|
type SubmitHandler<F extends FormValues> = (values: F) => void;
|
|
103
103
|
type SubmitErrorHandler<F extends FormValues> = (errors: FieldErrors<F>) => void;
|
|
104
104
|
type HandleSubmit<F extends FormValues> = (onSubmit: SubmitHandler<F>, onError?: SubmitErrorHandler<F>) => (event: SubmitEvent) => void;
|