MCPcopy Index your code
hub / github.com/Effect-TS/effect / get

Function get

packages/platform/src/HttpApiSchema.ts:667–683  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

665 let transform: Schema.Schema.Any | undefined
666 Object.defineProperty(EmptyError, "ast", {
667 get() {
668 if (transform) {
669 return transform.ast
670 }
671 const self = this as any
672 transform = asEmpty(
673 Schema.declare((u) => hasProperty(u, symbol), {
674 identifier: options.tag,
675 title: options.tag
676 }),
677 {
678 status: options.status,
679 decode: constant(new self())
680 }
681 )
682 return transform.ast
683 }
684 })
685 return EmptyError as any
686}

Callers

nothing calls this directly

Calls 2

asEmptyInterface · 0.85
constantFunction · 0.85

Tested by

no test coverage detected