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

Function toEncoded

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

Source from the content-addressed store, hash-verified

4851 * @since 4.0.0
4852 */
4853export const toEncoded = (ast: AST): AST => toType(flip(ast))
4854
4855function flipEncoding(ast: AST, encoding: Encoding): AST {
4856 let from = replaceEncoding(ast, undefined)

Callers 5

templateLiteralParserFunction · 0.70
getIndexSignatureKeysFunction · 0.70
constructorMethod · 0.70
getExpectedMethod · 0.70
middlewareEncodingFunction · 0.70

Calls 2

toTypeFunction · 0.70
flipFunction · 0.70

Tested by

no test coverage detected