isSchedule

tcmts.cli.pages.isSchedule · #xvseabjp · term · runs anywhere

A function made by every(...): a recurring job. every is a definition with the every role (roles, by hash: #gajlfke2), as the server library's has.

import type { DefRecord } from "#codebase/tcmts/core/types";

export const isSchedule = (
  rec: DefRecord,
  roles: ReadonlyMap<string, string> = new Map(),
): boolean => rec.spans.some((s) => s.hash !== undefined && roles.get(s.hash) === "every")

uses

used by