(schedule: string | Record<string, unknown>)
| 49 | } |
| 50 | |
| 51 | function getIntervalMs(schedule: string | Record<string, unknown>): number | null { |
| 52 | if (typeof schedule === "object" && schedule && schedule.kind === "every") { |
| 53 | return (schedule.everyMs as number) || null; |
| 54 | } |
| 55 | return null; |
| 56 | } |
| 57 | |
| 58 | function getAtTime(schedule: string | Record<string, unknown>): Date | null { |
| 59 | if (typeof schedule === "object" && schedule && schedule.kind === "at") { |
no outgoing calls
no test coverage detected