Skip to main content

matchRequestSlotToSlotTypeValue

Stentor API Reference


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​

RequestSlot

slotTypeValues​

SlotTypeValue<T>[]

Returns​

SlotTypeValue<T> | undefined