1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-04 08:54:20 -05:00
denoland-deno/cli/bench/testdata/npm/hono/dist/router/reg-exp-router/node.d.ts

15 lines
438 B
TypeScript
Raw Normal View History

export declare type ParamMap = Array<[string, number]>;
export interface Context {
varIndex: number;
}
export declare class Node {
index?: number;
varIndex?: number;
children: Record<string, Node>;
reverse: boolean;
constructor({ reverse }?: Partial<Node>);
newChildNode(): Node;
insert(tokens: readonly string[], index: number, paramMap: ParamMap, context: Context): void;
buildRegExpStr(): string;
}