Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
532
const
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.ts
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected