(annotations?: Schema.Annotations.Filter)
| 3626 | * ```ts import.meta.vitest |
| 3627 | * import { Schema, SchemaAST } from "effect" |
| 3628 | * |
| 3629 | * const schema = Schema.NumberFromString |
| 3630 | * const typeAst = SchemaAST.toType(schema.ast) |
| 3631 | * typeAst._tag // => "Number" |
| 3632 | * ``` |
| 3633 | * |
| 3634 | * @see {@link toEncoded} |
| 3635 | * @see {@link flip} |
| 3636 | * @category transforming |
| 3637 | * @since 4.0.0 |
| 3638 | */ |
| 3639 | export const toType = memoizeIdempotent(<A extends AST>(ast: A): A => { |
| 3640 | if (ast.encoding) { |
| 3641 | return toType(replaceEncoding(ast, undefined)) |
| 3642 | } |
| 3643 | const out: any = ast |
no test coverage detected
searching dependent graphs…