(ast: AST): ast is ObjectKeywordNarrows an AST to ObjectKeyword.
When to use
Use to identify the AST node for the TypeScript object keyword when
inspecting or transforming a Schema AST.
Source effect/SchemaAST.ts:3191 lines
export const const isObjectKeyword: (
ast: AST
) => ast is ObjectKeyword
Narrows an
AST
to
ObjectKeyword
.
When to use
Use to identify the AST node for the TypeScript object keyword when
inspecting or transforming a Schema AST.
isObjectKeyword = function makeGuard<T extends AST["_tag"]>(
tag: T
): (ast: AST) => ast is Extract<AST, { _tag: T }>
makeGuard("ObjectKeyword")