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

Function applyToLastLink

packages/effect/src/SchemaAST.ts:3417–3419  ·  view source on GitHub ↗
(f: (ast: AST) => AST)

Source from the content-addressed store, hash-verified

3415
3416/** @internal */
3417export function applyToLastLink(f: (ast: AST) => AST) {
3418 return <A extends AST>(ast: A): A => ast.encoding ? replaceEncoding(ast, updateLastLink(ast.encoding, f)) : ast
3419}
3420
3421/** @internal */
3422export function replaceContextLastLink<A extends AST>(ast: A, context: Context): A {

Callers 2

replaceContextLastLinkFunction · 0.85
SchemaAST.tsFile · 0.85

Calls 2

replaceEncodingFunction · 0.85
updateLastLinkFunction · 0.85

Tested by

no test coverage detected