MCPcopy Index your code
hub / github.com/bombshell-dev/clack / iso

Function iso

packages/prompts/src/date.ts:88–88  ·  view source on GitHub ↗
(d: Date)

Source from the content-addressed store, hash-verified

86 return settings.date.messages.required;
87 }
88 const iso = (d: Date) => d.toISOString().slice(0, 10);
89 if (opts.minDate && iso(value) < iso(opts.minDate)) {
90 return settings.date.messages.afterMin(opts.minDate);
91 }

Callers 1

validateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected