(transformation: {
readonly decode: SchemaGetter.Getter<S["Encoded"], S["Encoded"], RD>
readonly encode: SchemaGetter.Getter<S["Encoded"], S["Encoded"], RE>
})
| 5560 | * In a custom transformation, `decode` maps `From["Type"]` to `To["Encoded"]` |
| 5561 | * and is used on the encoding path, while `encode` maps `To["Encoded"]` to |
| 5562 | * `From["Type"]` and is used on the decoding path. |
| 5563 | * |
| 5564 | * **Example** (Transforming strings to numbers with a schema transformation) |
| 5565 | * |
| 5566 | * ```ts import.meta.vitest |
| 5567 | * import { Schema, SchemaGetter } from "effect" |
| 5568 | * |
| 5569 | * const NumberFromString = Schema.String.pipe( |
| 5570 | * Schema.decodeTo( |
| 5571 | * Schema.Number, |
| 5572 | * { |
no test coverage detected
searching dependent graphs…