From ae37ccca01872d921fa61ef71e394cba7c91d55e Mon Sep 17 00:00:00 2001 From: mattbrooks2010 Date: Wed, 4 Dec 2013 11:55:15 +0000 Subject: [PATCH] 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. --- routie/routie.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/routie/routie.d.ts b/routie/routie.d.ts index c9dd6974b..9129043a8 100644 --- a/routie/routie.d.ts +++ b/routie/routie.d.ts @@ -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 // Definitions: https://github.com/borisyankov/DefinitelyTyped @@ -12,4 +12,6 @@ interface Route { toURL(params: any): string; } -declare function routie(path: string, fn: Function): void; \ No newline at end of file +declare function routie(path: string): void; +declare function routie(path: string, fn: Function): void; +declare function routie(routes: { [key: string]: Function }): void; \ No newline at end of file