diff --git a/types/index.d.ts b/types/index.d.ts index b69b3f3..0c73229 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -5,7 +5,7 @@ * * @see https://github.com/Microsoft/TypeScript/issues/12215#issuecomment-377567046 */ -export type Omit = Pick>; +export type Omit = T extends any ? Pick> : never; /** * Like `T & U`, but where there are overlapping properties using the