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

Function isOptional

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

Source from the content-addressed store, hash-verified

4670 * @since 4.0.0
4671 */
4672export function isOptional(ast: AST): boolean {
4673 return ast.context?.isOptional ?? false
4674}
4675
4676/** @internal */
4677export function isMutable(ast: AST): boolean {

Callers 5

constructorMethod · 0.70
stepArrayFunction · 0.70
stepPropertyFunction · 0.70
collectSentinelsFunction · 0.70
updateContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected