Replies: 1 comment
-
Partially it's done for me like this: const handleChange = useCallback(
(key: keyof AuthorisationFormdata) =>
pipe(pathOr('', ['target', 'value']), assoc(key), setFormdata),
[]
) But this don't have exact parameters I want for the pipe function at all. Now it is: pipe<[obj: any], string, SetStateAction<Formdata<AuthLoginCreateRequest>>, void>(...) I want this and this doesn't work as well in typescript: pipe<[event: ChangeEvent<HTMLInputElement>], string, SetStateAction<Formdata<AuthLoginCreateRequest>>, void>(...) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using:
ramda:
0.28.0
typescript:
4.9.5
Look at the following code example:
And the look at the errors:
Demo: codesandbox
Beta Was this translation helpful? Give feedback.
All reactions