1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-26 17:19:06 -05:00
denoland-deno/cli/bench/testdata/npm/hono/dist/router/reg-exp-router/node.d.ts
2022-08-19 15:54:54 +05:30

14 lines
438 B
TypeScript

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;
}