Backbone.History.route may accept string or RegExp as first argument

This commit is contained in:
Lucky Soni
2017-11-21 08:03:32 +05:30
parent 661e7136a7
commit 2be9ad506f
+1 -1
View File
@@ -392,7 +392,7 @@ declare namespace Backbone {
decodeFragment(fragment: string): string;
getSearch(): string;
stop(): void;
route(route: string, callback: Function): number;
route(route: string|RegExp, callback: Function): number;
checkUrl(e?: any): void;
getPath(): string;
matchRoot(): boolean;