Skip to main content

findSchedulableMatch

Stentor API Reference


Stentor API Reference / stentor-time/src / findSchedulableMatch

Function: findSchedulableMatch()

findSchedulableMatch\<T>(schedules, baseNowInput): Scheduled\<T>

Defined in: packages/stentor-time/src/findSchedulableMatch.ts:39

Within a list of Schedulables, find a match for the provided time or current time if no time is provided.

Type Parameters​

T​

T extends object

Parameters​

schedules​

(T | Scheduled\<T>)[]

baseNowInput​

DateTime = ...

Returns​

Scheduled\<T>