mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
RegExp support for Router.route;
Router.route allows for regular expressions, as well as strings, for the "route" argument. See http://backbonejs.org/#Router-route
This commit is contained in:
Vendored
+1
@@ -279,6 +279,7 @@ declare module Backbone {
|
||||
constructor(options?: RouterOptions);
|
||||
initialize(options?: RouterOptions): void;
|
||||
route(route: string, name: string, callback?: Function): Router;
|
||||
route(route: RegExp, name: string, callback?: Function): Router;
|
||||
navigate(fragment: string, options?: NavigateOptions): Router;
|
||||
navigate(fragment: string, trigger?: boolean): Router;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user