* 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">
)
| 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"> |
no outgoing calls
no test coverage detected