MCPcopy Index your code
hub / github.com/Effect-TS/effect / match

Function match

packages/effect/test/Cron.test.ts:5–6  ·  view source on GitHub ↗
(input: Cron.Cron | string, date: DateTime.DateTime.Input)

Source from the content-addressed store, hash-verified

3import { Cron, DateTime, Either, Equal, Option } from "effect"
4
5const match = (input: Cron.Cron | string, date: DateTime.DateTime.Input) =>
6 Cron.match(Cron.isCron(input) ? input : Cron.unsafeParse(input), date)
7
8const next = (input: Cron.Cron | string, after?: DateTime.DateTime.Input) =>
9 Cron.next(Cron.isCron(input) ? input : Cron.unsafeParse(input), after)

Callers 6

Either.test.tsFile · 0.70
Option.test.tsFile · 0.70
Boolean.test.tsFile · 0.70
Cron.test.tsFile · 0.70
Duration.test.tsFile · 0.70
Match.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected