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

Function isOptional

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

Source from the content-addressed store, hash-verified

3642 * @since 4.0.0
3643 */
3644export function isOptional(ast: AST): boolean {
3645 return ast.context?.isOptional ?? false
3646}
3647
3648/** @internal */
3649export function isMutable(ast: AST): boolean {

Callers 4

constructorMethod · 0.85
stepFunction · 0.85
constructorMethod · 0.85
collectSentinelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected