MCPcopy Index your code
hub / github.com/Effect-TS/effect / createASTGuard

Function createASTGuard

packages/effect/src/SchemaAST.ts:532–533  ·  view source on GitHub ↗
(tag: T)

Source from the content-addressed store, hash-verified

530}
531
532const createASTGuard = <T extends AST["_tag"]>(tag: T) => (ast: AST): ast is Extract<AST, { _tag: T }> =>
533 ast._tag === tag
534
535/**
536 * @category guards

Callers 1

SchemaAST.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected