Page Contents

Home > @loopback/rest > Node

Node interface

A Node in the trie

Signature:

export interface Node<T> 

Properties

Property Modifiers Type Description
[children](/doc/en/lb4/apidocs.rest.node.children.html) `readonly` { \[key: string\]: [Node](/doc/en/lb4/apidocs.rest.node.html)<T>; } Children of the node
[key](/doc/en/lb4/apidocs.rest.node.key.html) string Key of the node
[names?](/doc/en/lb4/apidocs.rest.node.names.html) string\[\] _(Optional)_ Names of the node if it contains named parameters
[regexp?](/doc/en/lb4/apidocs.rest.node.regexp.html) RegExp _(Optional)_ Regular expression for the template
[value?](/doc/en/lb4/apidocs.rest.node.value.html) T _(Optional)_ Value of the node