mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
Changed declaration of Backbone.Router.routes. This is not neccessarily a function, but may also be a simple hash.
This commit is contained in:
Vendored
+1
-1
@@ -275,7 +275,7 @@ declare module Backbone {
|
||||
* For assigning routes as object hash, do it like this: this.routes = <any>{ "route": callback, ... };
|
||||
* That works only if you set it in the constructor or the initialize method.
|
||||
**/
|
||||
routes(): any;
|
||||
routes: any;
|
||||
|
||||
constructor(options?: RouterOptions);
|
||||
initialize(options?: RouterOptions): void;
|
||||
|
||||
Reference in New Issue
Block a user