Skip to main content

findRequestDependentMatch

Stentor API Reference


Stentor API Reference / stentor-request/src / findRequestDependentMatch

Function: findRequestDependentMatch()

findRequestDependentMatch\<T>(potentials, request): RequestDependable\<T>

Defined in: packages/stentor-request/src/findRequestDependentMatch.ts:13

Based on the provided request, it finds a request dependent match or undefined if no match is found.

Type Parameters​

T​

T extends object

Parameters​

potentials​

(T | RequestDependable\<T>)[]

request​

Request

Returns​

RequestDependable\<T>