MCPcopy Create free account
hub / github.com/Effect-TS/effect / toType

Function toType

packages/effect/src/SchemaAST.ts:4779–4779  ·  view source on GitHub ↗
(ast: A)

Source from the content-addressed store, hash-verified

4777 * @since 4.0.0
4778 */
4779export const toType = <A extends AST>(ast: A): A => flippedFrom.has(ast) ? toFlippedType(ast) : stripEncoding(ast)
4780
4781const toFlippedType = memoize(<A extends AST>(ast: A): A => {
4782 const source = flippedFrom.get(ast)

Callers 2

middlewareDecodingFunction · 0.70
toEncodedFunction · 0.70

Calls 2

stripEncodingFunction · 0.85
hasMethod · 0.65

Tested by

no test coverage detected