MCPcopy
hub / github.com/Effect-TS/effect / annotations

Method annotations

packages/effect/src/Schema.ts:1405–1416  ·  view source on GitHub ↗
(
    annotations: Annotations.Schema<Schema.Type<S>>
  )

Source from the content-addressed store, hash-verified

1403 readonly from: S
1404 ) {}
1405 annotations(
1406 annotations: Annotations.Schema<Schema.Type<S>>
1407 ): ElementImpl<S, Token> {
1408 return new ElementImpl(
1409 new AST.OptionalType(
1410 this.ast.type,
1411 this.ast.isOptional,
1412 { ...this.ast.annotations, ...toASTAnnotations(annotations) }
1413 ),
1414 this.from
1415 )
1416 }
1417 toString() {
1418 return `${this.ast.type}${this.ast.isOptional ? "?" : ""}`
1419 }

Callers

nothing calls this directly

Calls 1

toASTAnnotationsFunction · 0.85

Tested by

no test coverage detected