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

Function get

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

asEmptyInterface · 0.85
constantFunction · 0.85

Tested by

no test coverage detected