echelonjs
Version:
A new JSX/TSX based framework with decorator-driven reactivity.
23 lines (22 loc) • 640 B
TypeScript
import type { RouteRecord } from './types';
export declare function navigate(path: string): void;
export declare class Link {
to: string;
handleClick(e: MouseEvent): void;
render(children: any): import("echelon/core/jsx").EchelonElement<object>;
}
export declare class Router {
routes: RouteRecord[];
init(): void;
cleanup(): void;
updatePath: () => void;
render(children: any): import("echelon/core/jsx").EchelonElement<object>;
}
export declare class RouterOutlet {
private unsubscribe?;
private currentElement;
private compute;
mounted(): void;
destroyed(): void;
render(): any;
}