Added definitions overloads of routie function.

The routie function supports being called in a number of ways with
different types of parameters. Added two new overloaded definitions for
this function.
This commit is contained in:
mattbrooks2010
2013-12-04 11:55:15 +00:00
parent 9f3be188ac
commit ae37ccca01
+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;