MCPcopy
hub / github.com/Effect-TS/effect / DateFromSelf

Class DateFromSelf

packages/effect/src/Schema.ts:6787–6799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6785 * @since 3.10.0
6786 */
6787export class DateFromSelf extends declare(
6788 Predicate.isDate,
6789 {
6790 typeConstructor: { _tag: "Date" },
6791 identifier: "DateFromSelf",
6792 schemaId: DateFromSelfSchemaId,
6793 [DateFromSelfSchemaId]: { noInvalidDate: false },
6794 description: "a potentially invalid Date instance",
6795 pretty: () => (date) => `new Date(${JSON.stringify(date)})`,
6796 arbitrary: () => (fc) => fc.date({ noInvalidDate: false }),
6797 equivalence: () => Equivalence.Date
6798 }
6799) {}
6800
6801/**
6802 * Defines a schema that ensures only valid dates are accepted. This schema

Callers

nothing calls this directly

Calls 1

declareInterface · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…