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:174

Properties

name

name: string

Defined in

src/routing.ts:170


routes

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

Defined in

src/routing.ts:171


paramNames

paramNames: string[]

Defined in

src/routing.ts:172

Methods

touch

touch(node): RouteNode<E>

Parameters

NameType
nodestring

Returns

RouteNode<E>

Defined in

src/routing.ts:181


match

match(node): undefined | RouteNode<E>

Parameters

NameType
nodestring

Returns

undefined | RouteNode<E>

Defined in

src/routing.ts:186