mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Improvment on AppRouter
Added appRoute to Marionette.AppRouter Removed Controller type on processAppRoutes controller arg Added AppRouterOptions
This commit is contained in:
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