mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-25 11:11:46 +08:00
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:
Vendored
+4
-2
@@ -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;
|
||||
Reference in New Issue
Block a user