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

Method constructor

packages/effect/src/SchemaAST.ts:583–594  ·  view source on GitHub ↗
(
    isOptional: boolean,
    isMutable: boolean,
    /** Used for constructor default values (e.g. `withConstructorDefault` API) */
    constructorDefault: Link | undefined = undefined,
    annotations: Schema.Annotations.Key<unknown> | undefined = undefined
  )

Source from the content-addressed store, hash-verified

581 readonly annotations: Schema.Annotations.Key<unknown> | undefined
582
583 constructor(
584 isOptional: boolean,
585 isMutable: boolean,
586 /** Used for constructor default values (e.g. `withConstructorDefault` API) */
587 constructorDefault: Link | undefined = undefined,
588 annotations: Schema.Annotations.Key<unknown> | undefined = undefined
589 ) {
590 this.isOptional = isOptional
591 this.isMutable = isMutable
592 this.constructorDefault = constructorDefault
593 this.annotations = annotations
594 }
595}
596
597/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected