Add missing constraints
This commit is contained in:
parent
6516af44d2
commit
af4b21cd0e
2 changed files with 4 additions and 4 deletions
|
|
@ -17,6 +17,6 @@ export function keys(imm: Record<string, any>) {
|
|||
return keysCache.get(imm);
|
||||
}
|
||||
|
||||
export const ObjectTypedKeys = <T>(obj: T) => {
|
||||
export const ObjectTypedKeys = <T extends object>(obj: T) => {
|
||||
return Object.keys(obj) as (keyof T)[];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue