mettle-router
Version:
The official router for mettle.js
16 lines (15 loc) • 507 B
TypeScript
declare const routerVersion: string;
declare function initRouter(routes: any[], resetView: Function): Function;
interface pathDataType {
path?: string;
query?: object;
}
declare function linkTo(pathData: string | pathDataType): void;
declare function go(n: number): void;
declare function back(): void;
declare function forward(): void;
interface objparse {
[key: string]: string;
}
declare function toParse(): objparse;
export { initRouter, linkTo, go, back, forward, toParse, routerVersion };