Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

StrictOmit

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 StrictOmit<T, K extends keyof T> = Omit<T, K>;

§Type Parameters

§
K extends keyof T
[src]

§Type

§
Omit<T, K>
[src]