mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-25 12:00:38 +08:00
Improvment on AppRouter
Added appRoute to Marionette.AppRouter Removed Controller type on processAppRoutes controller arg Added AppRouterOptions
This commit is contained in:
1 parent
b3fa44db17
commit
6667394125
1 file changed
+9
-2
Vendored
+9
-2
@@ -269,11 +269,18 @@ declare module Marionette {
|
||||
render(): Layout;
|
||||
removeRegion(name: string);
|
||||
}
|
||||
|
||||
interface AppRouterOptions extends Backbone.RouterOptions {
|
||||
appRoutes: any;
|
||||
controller: any;
|
||||
}
|
||||
|
||||
class AppRouter extends Backbone.Router {
|
||||
|
||||
constructor(options?: any);
|
||||
processAppRoutes(controller: Controller, appRoutes: any);
|
||||
constructor(options?: AppRouterOptions);
|
||||
processAppRoutes(controller: any, appRoutes: any);
|
||||
appRoute(route:string, methodName:string):void;
|
||||
|
||||
}
|
||||
|
||||
class Application extends Backbone.Events {
|
||||
|
||||
Reference in new issue
Block a user