@@ -29,6 +29,7 @@ import { dual, identity } from "./Function.js"
2929import { globalValue } from "./GlobalValue.js"
3030import * as hashMap_ from "./HashMap.js"
3131import * as hashSet_ from "./HashSet.js"
32+ import * as Inspectable from "./Inspectable.js"
3233import * as internalCause_ from "./internal/cause.js"
3334import * as errors_ from "./internal/schema/errors.js"
3435import * as schemaId_ from "./internal/schema/schemaId.js"
@@ -6647,8 +6648,8 @@ export const lessThanDate = <S extends Schema.Any>(
66476648 filter ( ( a : Date ) => a < max , {
66486649 schemaId : LessThanDateSchemaId ,
66496650 [ LessThanDateSchemaId ] : { max } ,
6650- title : `lessThanDate(${ util_ . formatDate ( max ) } )` ,
6651- description : `a date before ${ util_ . formatDate ( max ) } ` ,
6651+ title : `lessThanDate(${ Inspectable . formatDate ( max ) } )` ,
6652+ description : `a date before ${ Inspectable . formatDate ( max ) } ` ,
66526653 ...annotations
66536654 } )
66546655 )
@@ -6674,8 +6675,8 @@ export const lessThanOrEqualToDate = <S extends Schema.Any>(
66746675 filter ( ( a : Date ) => a <= max , {
66756676 schemaId : LessThanOrEqualToDateSchemaId ,
66766677 [ LessThanOrEqualToDateSchemaId ] : { max } ,
6677- title : `lessThanOrEqualToDate(${ util_ . formatDate ( max ) } )` ,
6678- description : `a date before or equal to ${ util_ . formatDate ( max ) } ` ,
6678+ title : `lessThanOrEqualToDate(${ Inspectable . formatDate ( max ) } )` ,
6679+ description : `a date before or equal to ${ Inspectable . formatDate ( max ) } ` ,
66796680 ...annotations
66806681 } )
66816682 )
@@ -6699,8 +6700,8 @@ export const greaterThanDate = <S extends Schema.Any>(
66996700 filter ( ( a : Date ) => a > min , {
67006701 schemaId : GreaterThanDateSchemaId ,
67016702 [ GreaterThanDateSchemaId ] : { min } ,
6702- title : `greaterThanDate(${ util_ . formatDate ( min ) } )` ,
6703- description : `a date after ${ util_ . formatDate ( min ) } ` ,
6703+ title : `greaterThanDate(${ Inspectable . formatDate ( min ) } )` ,
6704+ description : `a date after ${ Inspectable . formatDate ( min ) } ` ,
67046705 ...annotations
67056706 } )
67066707 )
@@ -6726,8 +6727,8 @@ export const greaterThanOrEqualToDate = <S extends Schema.Any>(
67266727 filter ( ( a : Date ) => a >= min , {
67276728 schemaId : GreaterThanOrEqualToDateSchemaId ,
67286729 [ GreaterThanOrEqualToDateSchemaId ] : { min } ,
6729- title : `greaterThanOrEqualToDate(${ util_ . formatDate ( min ) } )` ,
6730- description : `a date after or equal to ${ util_ . formatDate ( min ) } ` ,
6730+ title : `greaterThanOrEqualToDate(${ Inspectable . formatDate ( min ) } )` ,
6731+ description : `a date after or equal to ${ Inspectable . formatDate ( min ) } ` ,
67316732 ...annotations
67326733 } )
67336734 )
@@ -6752,8 +6753,8 @@ export const betweenDate = <S extends Schema.Any>(
67526753 filter ( ( a : Date ) => a <= max && a >= min , {
67536754 schemaId : BetweenDateSchemaId ,
67546755 [ BetweenDateSchemaId ] : { max, min } ,
6755- title : `betweenDate(${ util_ . formatDate ( min ) } , ${ util_ . formatDate ( max ) } )` ,
6756- description : `a date between ${ util_ . formatDate ( min ) } and ${ util_ . formatDate ( max ) } ` ,
6756+ title : `betweenDate(${ Inspectable . formatDate ( min ) } , ${ Inspectable . formatDate ( max ) } )` ,
6757+ description : `a date between ${ Inspectable . formatDate ( min ) } and ${ Inspectable . formatDate ( max ) } ` ,
67576758 ...annotations
67586759 } )
67596760 )
@@ -6822,7 +6823,7 @@ export class DateFromString extends transform(
68226823 {
68236824 strict : true ,
68246825 decode : ( i ) => new Date ( i ) ,
6825- encode : ( a ) => util_ . formatDate ( a )
6826+ encode : ( a ) => Inspectable . formatDate ( a )
68266827 }
68276828) . annotations ( { identifier : "DateFromString" } ) { }
68286829
@@ -6885,7 +6886,8 @@ export class DateTimeUtcFromSelf extends declare(
68856886const decodeDateTimeUtc = < A extends dateTime . DateTime . Input > ( input : A , ast : AST . AST ) =>
68866887 ParseResult . try ( {
68876888 try : ( ) => dateTime . unsafeMake ( input ) ,
6888- catch : ( ) => new ParseResult . Type ( ast , input , `Unable to decode ${ util_ . formatUnknown ( input ) } into a DateTime.Utc` )
6889+ catch : ( ) =>
6890+ new ParseResult . Type ( ast , input , `Unable to decode ${ Inspectable . formatUnknown ( input ) } into a DateTime.Utc` )
68896891 } )
68906892
68916893/**
@@ -8847,7 +8849,7 @@ export const TaggedError = <Self = never>(identifier?: string) =>
88478849 get() {
88488850 return ` { ${
88498851 Reflect . ownKeys ( fields )
8850- . map ( ( p : any ) => `${ util_ . formatPropertyKey ( p ) } : ${ util_ . formatUnknown ( ( this ) [ p ] ) } ` )
8852+ . map ( ( p : any ) => `${ Inspectable . formatPropertyKey ( p ) } : ${ Inspectable . formatUnknown ( ( this ) [ p ] ) } ` )
88518853 . join ( ", " )
88528854 } } `
88538855 },
@@ -9112,7 +9114,9 @@ const makeClass = <Fields extends Struct.Fields>(
91129114 Object.defineProperty(klass.prototype, "toString", {
91139115 value() {
91149116 return ` $ { identifier } ( { $ {
9115- Reflect . ownKeys ( fields ) . map ( ( p : any ) => `${ util_ . formatPropertyKey ( p ) } : ${ util_ . formatUnknown ( this [ p ] ) } ` )
9117+ Reflect . ownKeys ( fields ) . map ( ( p : any ) =>
9118+ `${ Inspectable . formatPropertyKey ( p ) } : ${ Inspectable . formatUnknown ( this [ p ] ) } `
9119+ )
91169120 . join ( ", " )
91179121 } } ) `
91189122 },
0 commit comments