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

Function withConstructorDefault

packages/effect/src/SchemaAST.ts:4571–4576  ·  view source on GitHub ↗
(
  ast: A,
  defaultValue: Effect.Effect<unknown, SchemaIssue.Issue>
)

Source from the content-addressed store, hash-verified

4569
4570/** @internal */
4571export function withConstructorDefault<A extends AST>(
4572 ast: A,
4573 defaultValue: Effect.Effect<unknown, SchemaIssue.Issue>
4574): A {
4575 return updateContext(ast, undefined, undefined, defaultValue)
4576}
4577
4578/**
4579 * Attaches a `Transformation` to the `to` AST, making it decode from the

Callers

nothing calls this directly

Calls 1

updateContextFunction · 0.85

Tested by

no test coverage detected