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

Method omit

packages/effect/src/Optic.ts:768–768  ·  view source on GitHub ↗

* Focuses on all keys **except** the specified ones. * * **Details** * * - On a Lens, returns a Lens. * - On an Optional, returns an Optional. * - Does **not** work on union types (compile error). * * **Example** (Omitting keys) * * ```ts import.meta.vit

(
    this: Lens<S, A>,
    keys: Keys,
    ..._err: ForbidUnion<A, "cannot use `omit` on a union type">
  )

Source from the content-addressed store, hash-verified

766 * @since 4.0.0
767 */
768 omit<S, A, Keys extends ReadonlyArray<keyof A>>(
769 this: Lens<S, A>,
770 keys: Keys,
771 ..._err: ForbidUnion<A, "cannot use `omit` on a union type">

Callers 15

makeFunction · 0.65
runFunction · 0.65
UsersApiClass · 0.65
Struct.tst.tsFile · 0.65
Optic.tst.tsFile · 0.65
Tuple.tst.tsFile · 0.65
RpcGroup.tst.tsFile · 0.65
Tuple.tst.tsFile · 0.65
HttpClient.test.tsFile · 0.65
Optic.test.tsFile · 0.65

Implementers 1

OptionalImplpackages/effect/src/Optic.ts

Calls

no outgoing calls

Tested by

no test coverage detected