| 6785 | * @since 3.10.0 |
| 6786 | */ |
| 6787 | export 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…