Type alias StrictOmit<T, K>

StrictOmit<T, K>: Omit<T, K>

A stricter version of TypeScript's Omit that only allows omitting keys that actually exist. This prevents typos and ensures type safety at compile time. Unlike regular Omit, this will error if you try to omit a non-existent key.

Type Parameters

  • T

  • K extends keyof T

Generated using TypeDoc