Skip to content

Commit

Permalink
fix(typescript): address warning with objectKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
timiyay committed Oct 1, 2022
1 parent 561fc7a commit 394f5f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/typings/common-types.ts
Expand Up @@ -61,7 +61,7 @@ export function assertSingleKey(
/**
* Typing wrapper around Object.keys()
*/
export function objectKeys<T>(object: T) {
export function objectKeys<T extends {}>(object: T) {
return Object.keys(object) as (keyof T)[];
}

Expand Down

0 comments on commit 394f5f8

Please sign in to comment.