(annotations?: Schema.Annotations.Filter)
| 3660 | /** |
| 3661 | * Returns the encoded (wire-format) AST by flipping and then stripping |
| 3662 | * encodings. |
| 3663 | * |
| 3664 | * **Details** |
| 3665 | * |
| 3666 | * Equivalent to `toType(flip(ast))`. This gives you the AST that describes |
| 3667 | * the shape of the serialized/encoded data. |
| 3668 | * |
| 3669 | * - Memoized: same input reference → same output reference. |
| 3670 | * |
| 3671 | * **Example** (Getting the encoded AST) |
| 3672 | * |
| 3673 | * ```ts import.meta.vitest |
| 3674 | * import { Schema, SchemaAST } from "effect" |
| 3675 | * |
| 3676 | * const schema = Schema.NumberFromString |
| 3677 | * const encodedAst = SchemaAST.toEncoded(schema.ast) |
no test coverage detected
searching dependent graphs…