const SchemaWithDefaultFromDateTimeUtc = Schema.Struct({
//... other fields
from: Schema.DateTimeUtc.pipe(
Schema.propertySignature,
Schema.withConstructorDefault(() => Effect.runSync(DateTime.now)),
),
});
const SchemaWithDefaultFromDateTimeUtc = Schema.Struct({
//... other fields
from: Schema.DateTimeUtc.pipe(
Schema.propertySignature,
Schema.withConstructorDefault(() => Effect.runSync(DateTime.now)),
),
});