Skip to main content

findSlotDependentMatch

Stentor API Reference


Stentor API Reference / stentor-interaction-model/src / findSlotDependentMatch

Function: findSlotDependentMatch()

findSlotDependentMatch\<T>(objects, slots): SlotDependable\<T>

Defined in: packages/stentor-interaction-model/src/Slot/findSlotDependentMatch.ts:16

Based on the request, it finds a slot dependent object that matches.

Type Parameters​

T​

T extends object

Parameters​

objects​

(T | SlotDependable\<T>)[]

Objects to look within

slots​

RequestSlotMap

Returns​

SlotDependable\<T>

  • Returns the matched slot dependent object or undefined if not match was found.