MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / getScheduleExpr

Function getScheduleExpr

src/components/CronWeeklyTimeline.tsx:43–49  ·  view source on GitHub ↗
(schedule: string | Record<string, unknown>)

Source from the content-addressed store, hash-verified

41}
42
43function 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
51function getIntervalMs(schedule: string | Record<string, unknown>): number | null {
52 if (typeof schedule === "object" && schedule && schedule.kind === "every") {

Callers 1

CronWeeklyTimelineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected