(id)
| 13521 | : [X] extends [PromiseLike<infer A>] ? Effect<A, Cause.UnknownException, Self> |
| 13522 | : Effect<X, never, Self> |
| 13523 | } = (id) => () => { |
| 13524 | const limit = getStackTraceLimit() |
| 13525 | setStackTraceLimit(2) |
| 13526 | const creationError = new Error() |
| 13527 | setStackTraceLimit(limit) |
| 13528 | function TagClass() {} |
| 13529 | Object.setPrototypeOf(TagClass, TagProto) |
| 13530 | TagClass.key = id |
| 13531 | Object.defineProperty(TagClass, "use", { |
| 13532 | get() { |
| 13533 | return (body: (_: any) => any) => core.andThen(this, body) |
| 13534 | } |
| 13535 | }) |
| 13536 | Object.defineProperty(TagClass, "stack", { |
| 13537 | get() { |
| 13538 | return creationError.stack |
| 13539 | } |
| 13540 | }) |
| 13541 | return makeTagProxy(TagClass as any) |
| 13542 | } |
| 13543 | |
| 13544 | type MissingSelfGeneric = `Missing \`Self\` generic - use \`class Self extends Effect.Service<Self>()...\`` |
| 13545 |
nothing calls this directly
no test coverage detected