UNPKG

970 BTypeScriptView Raw
1// Copyright (c) .NET Foundation. All rights reserved.
2// Licensed under the MIT License.
3
4/**
5 * Timer schedule information. Provided to your function when using a timer binding.
6 */
7export interface Timer {
8 /**
9 * Whether this timer invocation is due to a missed schedule occurrence.
10 */
11 isPastDue: boolean;
12 schedule: {
13 /**
14 * Whether intervals between invocations should account for DST.
15 */
16 adjustForDST: boolean;
17 };
18 scheduleStatus: {
19 /**
20 * The last recorded schedule occurrence. Date ISO string.
21 */
22 last: string;
23 /**
24 * The expected next schedule occurrence. Date ISO string.
25 */
26 next: string;
27 /**
28 * The last time this record was updated. This is used to re-calculate `next` with the current schedule after a host restart. Date ISO string.
29 */
30 lastUpdated: string;
31 };
32}