inferred-types 0.55.21 → 0.55.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12487,7 +12487,7 @@ declare function objectValues<T extends Record<ObjectKey, N>, N extends Narrowab
12487
12487
  *
12488
12488
  * **Related:** `createOmission`, `withoutKeys`
12489
12489
  */
12490
- declare function omit<TObj extends Record<ObjectKey, N>, N extends Narrowable, TKeys extends readonly ObjectKey[] = readonly []>(obj: TObj, ...removeKeys: TKeys): WithoutKeys<TObj, TKeys>;
12490
+ declare function omit<TObj extends NarrowObject<N> | AnyObject, N extends Narrowable, TKeys extends readonly ObjectKey[] = readonly []>(obj: TObj, ...removeKeys: TKeys): Omit<TObj, TKeys[number]>;
12491
12491
 
12492
12492
  /**
12493
12493
  * **retain**(obj,...keys)
@@ -12563,7 +12563,7 @@ declare function withKeys<TObj extends Dictionary<string | symbol, N>, N extends
12563
12563
  *
12564
12564
  * **Related**: `omit`, `createOmission`
12565
12565
  */
12566
- declare function withoutKeys<TObj extends NarrowObject<N>, N extends Narrowable, TKeys extends readonly (string & keyof TObj)[]>(dict: TObj, ...exclude: TKeys): WithoutKeys<TObj, [...TKeys]>;
12566
+ declare function withoutKeys<TObj extends NarrowObject<N>, N extends Narrowable, TKeys extends readonly (string & keyof TObj)[]>(dict: TObj, ...exclude: TKeys): Omit<TObj, [...TKeys][number]>;
12567
12567
 
12568
12568
  type DictionaryWithoutValueFilter<Without extends Narrowable> = <T extends Record<ObjectKey, N>, N extends Narrowable>(obj: T) => WithoutValue<T, Without>;
12569
12569
  /**