From bb7db967659268d1441134152b873e88863c9333 Mon Sep 17 00:00:00 2001 From: Adilson de Almeida Junior Date: Fri, 19 Apr 2013 18:24:57 -0300 Subject: [PATCH] Routie definitions created --- routie/routie.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 routie/routie.d.ts diff --git a/routie/routie.d.ts b/routie/routie.d.ts new file mode 100644 index 000000000..78f7e2808 --- /dev/null +++ b/routie/routie.d.ts @@ -0,0 +1,15 @@ +// Type definitions for routie 0.3.0 +// Project: https://github.com/jgallen23/routie +// Definitions by: Adilson +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +interface Route { + constructor(path: string, name: string); + addHandler(fn: Function): void; + removeHandler(fn: Function): void; + run(params: any): void; + match(path: string, params: any): bool; + toURL(params: any): string; +} + +function routie(path: string, fn: Function): void; \ No newline at end of file