MCPcopy Create free account
hub / github.com/Effect-TS/effect / omit

Function omit

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

Source from the content-addressed store, hash-verified

327/** @internal */
328export const omit =
329 <Tags extends ReadonlyArray<C.Tag<any, any>>>(...tags: Tags) =>
330 <Services>(self: C.Context<Services>): C.Context<
331 Exclude<Services, C.Tag.Identifier<Tags[number]>>
332 > => {
333 const newEnv = new Map(self.unsafeMap)
334 for (const tag of tags) {
335 newEnv.delete(tag.key)
336 }
337 return makeContext(newEnv)
338 }

Callers

nothing calls this directly

Calls 1

makeContextFunction · 0.85

Tested by

no test coverage detected