Package: effect
Module: SchemaAST
Strips all encoding transformations from an AST, returning the decoded (type-level) representation.
Details
Arrays, Objects,
Union, Suspend).Example (Getting the type AST)
import { Schema, SchemaAST } from "effect"
const schema = Schema.NumberFromString
const typeAst = SchemaAST.toType(schema.ast)
console.log(typeAst._tag) // "Number"
See
toEncodedflipSignature
declare const toType: <A extends AST>(ast: A) => A
Since v4.0.0