(schedule: string | Record<string, unknown>)
| 41 | } |
| 42 | |
| 43 | function getScheduleExpr(schedule: string | Record<string, unknown>): string | null { |
| 44 | if (typeof schedule === "string") return schedule; |
| 45 | if (schedule && typeof schedule === "object" && schedule.kind === "cron") { |
| 46 | return (schedule.expr as string) || null; |
| 47 | } |
| 48 | return null; |
| 49 | } |
| 50 | |
| 51 | function getIntervalMs(schedule: string | Record<string, unknown>): number | null { |
| 52 | if (typeof schedule === "object" && schedule && schedule.kind === "every") { |
no outgoing calls
no test coverage detected