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

Function Tag

packages/effect/src/Effect.ts:13517–13536  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

13515 : [X] extends [PromiseLike<infer A>] ? Effect<A, Cause.UnknownException, Self>
13516 : Effect<X, never, Self>
13517 } = (id) => () => {
13518 const limit = Error.stackTraceLimit
13519 Error.stackTraceLimit = 2
13520 const creationError = new Error()
13521 Error.stackTraceLimit = limit
13522 function TagClass() {}
13523 Object.setPrototypeOf(TagClass, TagProto)
13524 TagClass.key = id
13525 Object.defineProperty(TagClass, "use", {
13526 get() {
13527 return (body: (_: any) => any) => core.andThen(this, body)
13528 }
13529 })
13530 Object.defineProperty(TagClass, "stack", {
13531 get() {
13532 return creationError.stack
13533 }
13534 })
13535 return makeTagProxy(TagClass as any)
13536 }
13537
13538type MissingSelfGeneric = `Missing \`Self\` generic - use \`class Self extends Effect.Service<Self>()...\``
13539

Callers

nothing calls this directly

Calls 1

makeTagProxyFunction · 0.85

Tested by

no test coverage detected