Skip to content

improve [handleSubmit] to able to handle return value #29

improve [handleSubmit] to able to handle return value

improve [handleSubmit] to able to handle return value #29

Triggered via push February 21, 2024 01:13
Status Failure
Total duration 29s
Artifacts

checker.yml

on: push
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 3 warnings
build (18.x): src/index.ts#L1
Type '{ useInitialize: (initialValue: Partial<StateBeforeValidation>) => void; useSelector: <Selection>(selector: (s: Readonly<FullFormState<StateBeforeValidation>>) => Selection, isEqual?: ((a: Selection, b: Selection) => boolean) | undefined) => Selection; handleSubmit: <R>(handler: (e: BaseSyntheticEvent<object, any, any>) => (val: { success: true; data: zodInfer<Schema>; error: undefined; } | { success: false; error: readonly ZodIssue[]; }) => R) => (e: BaseSyntheticEvent<object, any, any>) => Promise<any>; components: { Slicer<R extends readonly unknown[]>(props: SliceProps<StateBeforeValidation, R>): React.FunctionComponentElement<{ children?: ReactNode; }>; Field<Name extends keyof StateBeforeValidation>(props: FieldProps<StateBeforeValidation, Name>): React.FunctionComponentElement<{ children?: ReactNode; }>; }; actions: { peek: (eyeball: (prev: FullFormState<StateBeforeValidation>) => void) => void; reset: () => void; initializeForm: (initialVal: Partial<StateBeforeValidation>, opts?: { cleanup?: true; } | undefined) => void; handleIssues: (issues: readonly ZodIssue[]) => void; pushFormErrors: (validator: (state: StateBeforeValidation) => Partial<FormErrors<StateBeforeValidation>>) => void; reduceFormErrors: (reducer: (prev: FormErrors<StateBeforeValidation>) => FormErrors<StateBeforeValidation>) => void; handleChange: (name: keyof StateBeforeValidation, value: StateBeforeValidation[keyof StateBeforeValidation]) => void; reduceFormState: (reducer: (prevValue: StateBeforeValidation) => StateBeforeValidation) => void; handleBulkChange: (setter: (prev: StateBeforeValidation) => Partial<StateBeforeValidation>) => void; }; controller: { useInitialize: (initialValue: Partial<StateBeforeValidation>) => void; useSelector: <Selection>(selector: (s: Readonly<FullFormState<StateBeforeValidation>>) => Selection, isEqual?: ((a: Selection, b: Selection) => boolean) | undefined) => Selection; handleSubmit: <R>(handler: (e: BaseSyntheticEvent<object, any, any>) => (val: { success: true; data: zodInfer<Schema>; error: undefined; } | { success: false; error: readonly ZodIssue[]; }) => R) => (e: BaseSyntheticEvent<object, any, any>) => Promise<any>; components: { Slicer<R extends readonly unknown[]>(props: SliceProps<StateBeforeValidation, R>): React.FunctionComponentElement<{ children?: ReactNode; }>; Field<Name extends keyof StateBeforeValidation>(props: FieldProps<StateBeforeValidation, Name>): React.FunctionComponentElement<{ children?: ReactNode; }>; }; actions: { peek: (eyeball: (prev: FullFormState<StateBeforeValidation>) => void) => void; reset: () => void; initializeForm: (initialVal: Partial<StateBeforeValidation>, opts?: { cleanup?: true; } | undefined) => void; handleIssues: (issues: readonly ZodIssue[]) => void; pushFormErrors: (validator: (state: StateBeforeValidation) => Partial<FormErrors<StateBeforeValidation>>) => void; reduceFormErrors: (reducer: (prev: FormErrors<StateBeforeValidation>) => FormErrors<StateBeforeValidation>) => void; handleChange: (name: keyof StateBeforeValidation, value: StateBeforeValidation[keyof StateBeforeValidation]) => void; reduceFormState: (reducer: (prevValue: StateBeforeValidation) => StateBeforeValidation) => void; handleBulkChange: (setter: (prev: StateBeforeValidation) => Partial<StateBeforeValidation>) => void; }; }; api: Subscriber<FullFormState<StateBeforeValidation>, FormControllerBehavior<StateBeforeValidation>>; }' is not assignable to type 'FormHook<StateBeforeValidation, Schema>'.
build (18.x)
Process completed with exit code 2.
build (18.x)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v1, actions/cache@preview. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build (18.x)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-node@v1, actions/cache@preview. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build (18.x)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/