Skip to content

Workery / routing / RouteNode

Class: RouteNode<E>

routing.RouteNode

Type parameters

NameType
Eunknown

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new RouteNode<E>(name): RouteNode<E>

Type parameters

NameType
Eunknown

Parameters

NameType
namestring

Returns

RouteNode<E>

Defined in

src/routing.ts:170

Properties

name

name: string

Defined in

src/routing.ts:166


routes

routes: Record<string, Route<any, any, E>>

Defined in

src/routing.ts:167


paramNames

paramNames: string[]

Defined in

src/routing.ts:168

Methods

touch

touch(node): RouteNode<E>

Parameters

NameType
nodestring

Returns

RouteNode<E>

Defined in

src/routing.ts:177


match

match(node): undefined | RouteNode<E>

Parameters

NameType
nodestring

Returns

undefined | RouteNode<E>

Defined in

src/routing.ts:182