Commit d9d8b8e
committed
Improve AgnosticBaseRouteObject type for projects using exactOptionalPropertyTypes
Projects that use typescript with the exactOptionalPropertyTypes=true
setting see a type error when using react-router.
The workaround of using skipLibCheck=false is not desirable as it
weakens type-system accuracy for the whole project.
https://www.typescriptlang.org/tsconfig/#skipLibCheck
Fixes #10392
Fixes #11991
Fixes #145041 parent 1dbf8e3 commit d9d8b8e
1 file changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
| |||
0 commit comments