Skip to content

Commit

Permalink
refactor: use PropertyKey instaed of key list (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdamAme-x authored Jul 10, 2024
1 parent 966150b commit 9fdf2b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export const has = (
* inverted as { [value]: key }
*/
export const invert = <
TKey extends string | number | symbol,
TValue extends string | number | symbol
TKey extends PropertyKey,
TValue extends PropertyKey
>(
obj: Record<TKey, TValue>
): Record<TValue, TKey> => {
Expand Down

0 comments on commit 9fdf2b8

Please sign in to comment.