Skip to content

Commit

Permalink
feat(types): allow readonly array in omit function (radashi-org#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
shan-shaji authored and MarlonPassos-git committed Nov 10, 2024
1 parent 38b82b2 commit ef3de3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/object/omit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
export function omit<T, TKeys extends keyof T>(
obj: T,
keys: TKeys[],
keys: readonly TKeys[],
): Omit<T, TKeys> {
if (!obj) {
return {} as Omit<T, TKeys>
Expand Down

0 comments on commit ef3de3d

Please sign in to comment.