Comparing version 1.2.0 to 1.3.0
@@ -1,2 +0,3 @@ | ||
export declare function omit<Obj extends object, Key extends string>(obj: Obj, remove: Key[]): Omit<Obj, Key>; | ||
export declare function omit<Obj extends object, Key extends string>(obj: Obj, remove1: Key, ...removeN: Key[]): Omit<Obj, Key>; | ||
declare function omit<Obj extends object, Key extends string>(obj: Obj, remove: Key[]): Omit<Obj, Key>; | ||
declare function omit<Obj extends object, Key extends string>(obj: Obj, remove1: Key, ...removeN: Key[]): Omit<Obj, Key>; | ||
export default omit |
@@ -1,2 +0,2 @@ | ||
import { omit } from './index'; | ||
import omit from './index'; | ||
@@ -50,2 +50,2 @@ const obj = { | ||
// @ts-expect-error | ||
omit([1, 2, 3], 0); | ||
omit([1, 2, 3], 0); |
{ | ||
"name": "just-omit", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "copy an object but omit the specified keys", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3568
72