* 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 { O
(
this: Lens<S, A>,
keys: Keys,
..._err: ForbidUnion<A, "cannot use `omit` on a union type">
)
| 831 | * |
| 832 | * const result = addLike({ |
| 833 | * user: { posts: [{ title: "a", likes: 0 }, { title: "b", likes: 1 }] } |
| 834 | * }) |
| 835 | * result.user.posts // => [{ title: "a", likes: 0 }, { title: "b", likes: 2 }] |
| 836 | * ``` |
no outgoing calls
no test coverage detected