React-router: Routes typescript

Created on 10 Apr 2020  路  7Comments  路  Source: ReactTraining/react-router

npm install @types/react-router-dom does not have Routes supported as far

Most helpful comment

@olee We plan to do so in v6. Michael is working on it.

All 7 comments

Those types aren't maintained here. We don't have types for v6 yet.

Sorry to chime in. Is anyone working on types yet or are you waiting for release? I have a good app that sits between medium and large and would love to test this out.

Nevermind. I found the open PR to add @6 - https://github.com/DefinitelyTyped/DefinitelyTyped/pull/44015

Why don't you just add typescript support directly into react-router?
This is such a basic react library and it's a shame that it does not support typescript directly which should be a must have for any good react library.
It would be even better if the implementation itself would have been written in ts, but I guess that's a different matter.

@olee We plan to do so in v6. Michael is working on it.

If any of you could help with my PR to make it pass I would highly appreciate it. Me and 2 other guys did almost everything but due to braking changes I cannot pass the tests and it makes it impossible to quickly enable all TypeScripters to use v6.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yormi picture yormi  路  3Comments

davetgreen picture davetgreen  路  3Comments

ArthurRougier picture ArthurRougier  路  3Comments

maier-stefan picture maier-stefan  路  3Comments

nicolashery picture nicolashery  路  3Comments