-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(react-router): Make RouteProps typing more generic (#3570)
Previously we copied over the typings for a react-router Route props. This means though that when the react-router updates it's types, there is a chance our types will break. To avoid this in the future, this patch removes the RouteProps typing and uses a plain `Record<string, any>` type instead. The props we do leverage from the RouteProps have checks in the code and there are tests covering that the RouteProps properties exist, so making the type more generic is not that risky.
- Loading branch information
1 parent
c3b1bb5
commit e7f5255
Showing
3 changed files
with
8 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters