findLastActiveMatch
Stentor API Reference / stentor-time/src / findLastActiveMatch
Function: findLastActiveMatch()
findLastActiveMatch\<
T>(responses,context):LastActive\<T>
Defined in: packages/stentor-time/src/findLastActiveMatch.ts:13
Finds the most relevant contextual match.
Type Parametersβ
Tβ
T extends object
Parametersβ
responsesβ
(T | LastActive\<T>)[]
contextβ
lastActiveTimestamp?β
number
Returnsβ
LastActive\<T>