mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00:00
[react-router-config] Fix error when "strictFunctionTypes" is on (#30460)
This commit is contained in:
Vendored
+3
-2
@@ -1,7 +1,8 @@
|
||||
// Type definitions for react-router-config 1.0
|
||||
// Type definitions for react-router-config 1.1
|
||||
// Project: https://github.com/ReactTraining/react-router/tree/master/packages/react-router-config
|
||||
// Definitions by: François Nguyen <https://github.com/lith-light-g>
|
||||
// John Reilly <https://github.com/johnnyreilly>
|
||||
// Phoenix He <https://github.com/NullMDR>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
@@ -15,7 +16,7 @@ export interface RouteConfigComponentProps<Params extends { [K in keyof Params]?
|
||||
|
||||
export interface RouteConfig {
|
||||
location?: Location;
|
||||
component?: React.ComponentType<RouteConfigComponentProps<any> | {}>;
|
||||
component?: React.ComponentType<RouteConfigComponentProps<any>> | React.ComponentType;
|
||||
path?: string;
|
||||
exact?: boolean;
|
||||
strict?: boolean;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": false,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
|
||||
Reference in New Issue
Block a user