matchRequestSlotToSlotTypeValue
Stentor API Reference / stentor-utils/src / matchRequestSlotToSlotTypeValue
Function: matchRequestSlotToSlotTypeValue()
matchRequestSlotToSlotTypeValue<
T>(slot,slotTypeValues):SlotTypeValue<T> |undefined
Defined in: packages/stentor-utils/src/matcher.ts:208
Match the request slot to the provided slot type values.
Both synonym and value are used, whichever has the highest score is returned.
Type Parametersβ
Tβ
T
Parametersβ
slotβ
slotTypeValuesβ
SlotTypeValue<T>[]
Returnsβ
SlotTypeValue<T> | undefined