I want to use the redox-form(v6) as a typescript.

Asked 2 years ago, Updated 2 years ago, 122 views

I have a question about whether the redox-form is used as a typescript.
What I want to do is to use the redox-form(v6) as a typescript.

The typescript uses v2.
If you get the type definition of the redox-form in @types, you get the one in v4.
https://gist.github.com/rluiten/a41fb5845fae11a5484bad954d97b3a8
It works by copying v6's .d.ts, but if you update .d.ts, it will be overwritten.
Therefore, we are currently considering implementing only the component in jsx and not using typescript.

I came up with the following options.
·Redux-form(v6)+.d.td Self-made
·Use redox-form(v6)+jsx
·Use redox-form (v5 or less) + typescript

I would like to use typescript as much as possible, but there are no other .d.ts or lower versions of libraries
I've been wondering if react+typescript is too early.

Please help me if anyone has an effective plan under similar conditions.Thank you for your cooperation.

reactjs typescript redux

2022-09-30 19:13

1 Answers

If you want to use any type definition file,
I put the file in the source directory
Remove @types/redux-form from npm dependencies.


2022-09-30 19:13

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.