import { Schema } from "effect"
const schema = Schema.optionalWith(Schema.NullOr(Schema.String), { default: () => null });
type Type = Schema.Schema.Type<typeof schema>;
Schema.validateSync(schema)(undefined);
// ^ errors
import { Schema } from "effect"
const schema = Schema.optionalWith(Schema.NullOr(Schema.String), { default: () => null });
type Type = Schema.Schema.Type<typeof schema>;
Schema.validateSync(schema)(undefined);
// ^ errors