@dazejs/framework
Version:
Daze.js - A powerful web framework for Node.js
15 lines (14 loc) • 432 B
TypeScript
import { Route } from './route';
export declare class Node {
key?: string;
type?: string;
children: Node[];
route: Route;
priority: number;
constructor(key?: string, type?: string);
matchChild(key: string): Node | null;
matchChildren(key: string): Node[];
insert(route: Route, pieces?: any[], height?: number): void;
reorderChildren(): void;
search(keys?: any[], height?: number): any;
}