Workery / routing / RouteMatcher
Class: RouteMatcher<E>
routing.RouteMatcher
Type parameters
Name | Type |
---|---|
E | unknown |
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new RouteMatcher<E
>(): RouteMatcher
<E
>
Type parameters
Name | Type |
---|---|
E | unknown |
Returns
RouteMatcher
<E
>
Defined in
Properties
routes
• routes: Route
<any
, any
, E
>[]
Defined in
Accessors
length
• get
length(): number
Returns
number
Defined in
Methods
[iterator]
▸ [iterator](): IterableIterator
<Route
<any
, any
, E
>>
Returns
IterableIterator
<Route
<any
, any
, E
>>
Defined in
push
▸ push(...routes
): number
Parameters
Name | Type |
---|---|
...routes | Route <any , any , E >[] |
Returns
number
Defined in
match
▸ match(method
, path
): [undefined
| null
| Route
<any
, any
, E
>, Record
<string
, string
>]
Parameters
Name | Type |
---|---|
method | string |
path | string |
Returns
[undefined
| null
| Route
<any
, any
, E
>, Record
<string
, string
>]