determine
Stentor API Reference / stentor-determiner/src / determine
Function: determine()
determine<
P>(potentials,request,context,additionalContext?,macros?):P|undefined
Defined in: packages/stentor-determiner/src/determine.ts:47
Determine which of the provided objects is best based on provided request and context.
Type Parametersβ
Pβ
P extends object
Parametersβ
potentialsβ
P[]
requestβ
contextβ
additionalContext?β
Record<string, unknown>
macros?β
MacroMap
Returnsβ
P | undefined
The best match from the provided potential matches, undefined if now match could be determined.