Latest
class Node
import { Node } from "https://deno.land/x/lean@0.0.6/lib/deps.ts";

Constructors

new
Node(node?: Partial<Node<T>>)

Type Parameters

optional
T = Function

Properties

children: Map<string, Node<T>>
handler: T | undefined
path: string

Methods

add(path: string, handler: T): void
find(path: string): [T | undefined, Map<string, string>]