Installation
npm install --save @types/routie
Summary
This package contains type definitions for routie (https://github.com/jgallen23/routie).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/routie.
index.d.ts
declare namespace routie {
interface Routie extends RoutieStatic {
(path: string): void;
(path: string, fn: Function): void;
(routes: { [key: string]: Function }): void;
}
interface RoutieStatic {
lookup(name: string, fn: Function): string;
remove(path: string, fn: Function): void;
removeAll(): void;
navigate(path: string, options?: RouteOptions): void;
noConflict(): Routie;
}
interface RouteOptions {
silent?: boolean | undefined;
}
}
declare var routie: routie.Routie;
Additional Details
- Last updated: Tue, 07 Nov 2023 1536 GMT
- Dependencies: none
Credits
These definitions were written by Adilson.