( defaultValue: Effect.Effect<S["Type"], SchemaError, R>, options?: DecodingDefaultOptions )
| 6043 | * @since 4.0.0 |
| 6044 | */ |
| 6045 | export function withDecodingDefaultType<S extends Constraint, R = never>( |
| 6046 | defaultValue: Effect.Effect<S["Type"], SchemaError, R>, |
| 6047 | options?: DecodingDefaultOptions |
| 6048 | ) { |
| 6049 | return (self: S): withDecodingDefaultType<S, R> => { |
| 6050 | return toType(self).pipe( |
| 6051 | withDecodingDefault<toType<S>, R>(defaultValue, options), |
| 6052 | encodeTo(optional(self)) |
| 6053 | ) |
| 6054 | } |
| 6055 | } |
| 6056 | |
| 6057 | /** |
| 6058 | * Type-level representation returned by {@link tag}. |
nothing calls this directly
no test coverage detected