(id)
| 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 | |
| 13538 | type MissingSelfGeneric = `Missing \`Self\` generic - use \`class Self extends Effect.Service<Self>()...\`` |
| 13539 |
nothing calls this directly
no test coverage detected