MCPcopy Index your code
hub / github.com/Effect-TS/effect / omit

Function omit

packages/effect/src/internal/context.ts:328–337  ·  view source on GitHub ↗
(...tags: Tags)

Source from the content-addressed store, hash-verified

326/** @internal */
327export 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 }

Callers

nothing calls this directly

Calls 1

makeContextFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…