diff options
Diffstat (limited to 'cli/bench/testdata/npm/hono/dist/router/trie-router/node.d.ts')
-rw-r--r-- | cli/bench/testdata/npm/hono/dist/router/trie-router/node.d.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cli/bench/testdata/npm/hono/dist/router/trie-router/node.d.ts b/cli/bench/testdata/npm/hono/dist/router/trie-router/node.d.ts new file mode 100644 index 000000000..a489b17f6 --- /dev/null +++ b/cli/bench/testdata/npm/hono/dist/router/trie-router/node.d.ts @@ -0,0 +1,20 @@ +import type { Result } from '../../router'; +import type { Pattern } from '../../utils/url'; +declare type HandlerSet<T> = { + handler: T; + score: number; + name: string; +}; +export declare class Node<T> { + methods: Record<string, HandlerSet<T>>[]; + children: Record<string, Node<T>>; + patterns: Pattern[]; + order: number; + name: string; + handlerSetCache: Record<string, HandlerSet<T>[]>; + constructor(method?: string, handler?: T, children?: Record<string, Node<T>>); + insert(method: string, path: string, handler: T): Node<T>; + private getHandlerSets; + search(method: string, path: string): Result<T> | null; +} +export {}; |