Skip to content

Commit

Permalink
feat(utils): change unknown to any in value part of Record (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
okinawaa authored Feb 27, 2023
1 parent 1fad3bf commit 7f4fe99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/common/utils/src/object/omit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { ObjectKeys, objectKeys } from '.';
import { ElementType } from './types';

export function omit<ObjectType extends Record<PropertyKey, unknown>, KeyTypes extends Array<ObjectKeys<ObjectType>>>(
export function omit<ObjectType extends Record<PropertyKey, any>, KeyTypes extends Array<ObjectKeys<ObjectType>>>(
obj: ObjectType,
keys: KeyTypes
) {
Expand Down
2 changes: 1 addition & 1 deletion packages/common/utils/src/object/pick.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @tossdocs-ignore */
import { ElementType } from './types';

export function pick<ObjectType extends Record<PropertyKey, unknown>, KeyTypes extends Array<keyof ObjectType>>(
export function pick<ObjectType extends Record<PropertyKey, any>, KeyTypes extends Array<keyof ObjectType>>(
obj: ObjectType,
keys: KeyTypes
) {
Expand Down

0 comments on commit 7f4fe99

Please sign in to comment.