( defaultValue: Effect.Effect<S["Type"], SchemaError, R>, options?: DecodingDefaultOptions )
| 6240 | * @since 4.0.0 |
| 6241 | */ |
| 6242 | export function withDecodingDefaultType<S extends Constraint, R = never>( |
| 6243 | defaultValue: Effect.Effect<S["Type"], SchemaError, R>, |
| 6244 | options?: DecodingDefaultOptions |
| 6245 | ): (self: S) => withDecodingDefaultType<S, R> { |
| 6246 | return (self: S): withDecodingDefaultType<S, R> => { |
| 6247 | return toType(self).pipe( |
| 6248 | withDecodingDefault<toType<S>, R>(defaultValue, options), |
| 6249 | encodeTo(optional(self)) |
| 6250 | ) |
| 6251 | } |
| 6252 | } |
| 6253 | /** |
| 6254 | * Type-level representation returned by {@link tag}. |
| 6255 | * |
nothing calls this directly
no test coverage detected