mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
refactor run method, use union types
This commit is contained in:
Vendored
+1
-2
@@ -174,8 +174,7 @@ declare module ReactRouter {
|
||||
|
||||
function create(options: RouterCreateOption): Router;
|
||||
function run(routes: Route, callback: RouterRunCallback): Router;
|
||||
function run(routes: Route, location: LocationBase, callback: RouterRunCallback): Router;
|
||||
function run(routes: Route, location: string, callback: RouterRunCallback): Router;
|
||||
function run(routes: Route, location: LocationBase | string, callback: RouterRunCallback): Router;
|
||||
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user