mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-30 12:50:40 +08:00
Update definition to support instantiating StaticLocation
This commit is contained in:
1 parent
efa0c1196d
commit
2682d3a8ba
1 file changed
+4
-1
Vendored
+4
-1
@@ -175,6 +175,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;
|
||||
|
||||
|
||||
//
|
||||
@@ -198,7 +199,9 @@ declare module ReactRouter {
|
||||
interface HashLocation extends Location, LocationListener { }
|
||||
interface HistoryLocation extends Location, LocationListener { }
|
||||
interface RefreshLocation extends Location { }
|
||||
interface StaticLocation extends LocationBase { }
|
||||
interface StaticLocation extends LocationBase {
|
||||
new(path: string): StaticLocation
|
||||
}
|
||||
interface TestLocation extends Location, LocationListener { }
|
||||
|
||||
var HashLocation: HashLocation;
|
||||
|
||||
Reference in new issue
Block a user