MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / isCronTask

Function isCronTask

apps/vis/server/src/lib/cron-store.ts:58–67  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

56}
57
58function isCronTask(value: unknown): value is CronTask {
59 if (typeof value !== 'object' || value === null) return false;
60 const o = value as Record<string, unknown>;
61 return (
62 typeof o['id'] === 'string' &&
63 typeof o['cron'] === 'string' &&
64 typeof o['prompt'] === 'string' &&
65 typeof o['createdAt'] === 'number'
66 );
67}

Callers 1

listCronTasksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected