# TypedOmit

`type` in `types` · v0.16.2

<https://seedcord.org/docs/packages/types/0.16.2/types/typed-omit>

Type-safe version of Omit that ensures the keys exist on the target object

## Examples

```ts
type Example = { a: number; b: string; c: boolean; }
type Result = TypedOmit<Example, 'b' | 'c'>; // Result: { a: number; }
```

## Declaration

```ts
type TypedOmit<TargetObj, ObjKeys extends keyof TargetObj> = Omit<
    TargetObj,
    ObjKeys
>;
```
