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