(key: string)
| 68 | |
| 69 | /** @internal */ |
| 70 | export const makeGenericTag = <Identifier, Service = Identifier>(key: string): C.Tag<Identifier, Service> => { |
| 71 | const limit = getStackTraceLimit() |
| 72 | setStackTraceLimit(2) |
| 73 | const creationError = new Error() |
| 74 | setStackTraceLimit(limit) |
| 75 | const tag = Object.create(TagProto) |
| 76 | Object.defineProperty(tag, "stack", { |
| 77 | get() { |
| 78 | return creationError.stack |
| 79 | } |
| 80 | }) |
| 81 | tag.key = key |
| 82 | return tag |
| 83 | } |
| 84 | |
| 85 | /** @internal */ |
| 86 | export const Tag = <const Id extends string>(id: Id) => <Self, Shape>(): C.TagClass<Self, Id, Shape> => { |
nothing calls this directly
no test coverage detected