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

Function getLastEncoding

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

Source from the content-addressed store, hash-verified

3368
3369/** @internal */
3370export function getLastEncoding(ast: AST): AST {
3371 return ast.encoding ? getLastEncoding(ast.encoding[ast.encoding.length - 1].to) : ast
3372}
3373
3374/** @internal */
3375export function annotate<A extends AST>(ast: A, annotations: Schema.Annotations.Annotations): A {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected