Skip to content

Commit 5eb48fc

Browse files
authored
Merge pull request #331 from zerkms/ISSUE-330_setRoutingData_TS
Added `Router.setRoutingData` to typescript definition
2 parents 6e6137e + 40711b0 commit 5eb48fc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Resources/ts/router.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,17 @@ declare module FOS {
3030
base_url:string;
3131
}
3232

33+
export interface RoutingData {
34+
base_url:string;
35+
routes:RoutesMap;
36+
prefix?:string;
37+
host:string;
38+
scheme:string;
39+
}
40+
3341
export interface Router {
3442
new(opt_context?:Context, opt_routes?:RoutesMap):Router;
43+
setRoutingData(data:RoutingData):void;
3544
setRoutes(routes:RoutesMap):void;
3645
getRoutes():RoutesMap;
3746
setBaseUrl(base_url:string):void;

0 commit comments

Comments
 (0)