Merge pull request #1373 from mattbrooks2010/master

Added definitions overloads of routie function.
This commit is contained in:
Basarat Ali Syed
2013-12-04 04:34:05 -08:00
+4 -2
View File
@@ -1,4 +1,4 @@
// Type definitions for routie 0.3.0
// Type definitions for routie 0.3.2
// Project: https://github.com/jgallen23/routie
// Definitions by: Adilson <https://github.com/Adilson>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@@ -12,4 +12,6 @@ interface Route {
toURL(params: any): string;
}
declare function routie(path: string, fn: Function): void;
declare function routie(path: string): void;
declare function routie(path: string, fn: Function): void;
declare function routie(routes: { [key: string]: Function }): void;