( defaultValue: Effect.Effect<S["Type"], SchemaError, R>, options?: DecodingDefaultOptions )
| 5931 | * @since 4.0.0 |
| 5932 | */ |
| 5933 | export function withDecodingDefaultTypeKey<S extends Constraint, R = never>( |
| 5934 | defaultValue: Effect.Effect<S["Type"], SchemaError, R>, |
| 5935 | options?: DecodingDefaultOptions |
| 5936 | ) { |
| 5937 | return (self: S): withDecodingDefaultTypeKey<S, R> => { |
| 5938 | return toType(self).pipe( |
| 5939 | withDecodingDefaultKey<toType<S>, R>(defaultValue, options), |
| 5940 | encodeTo(optionalKey(self)) |
| 5941 | ) |
| 5942 | } |
| 5943 | } |
| 5944 | |
| 5945 | /** |
| 5946 | * Type-level representation returned by {@link withDecodingDefault}. |
nothing calls this directly
no test coverage detected