(...tags: Tags)
| 326 | /** @internal */ |
| 327 | export const omit = |
| 328 | <Tags extends ReadonlyArray<C.Tag<any, any>>>(...tags: Tags) => |
| 329 | <Services>(self: C.Context<Services>): C.Context< |
| 330 | Exclude<Services, C.Tag.Identifier<Tags[number]>> |
| 331 | > => { |
| 332 | const newEnv = new Map(self.unsafeMap) |
| 333 | for (const tag of tags) { |
| 334 | newEnv.delete(tag.key) |
| 335 | } |
| 336 | return makeContext(newEnv) |
| 337 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…