4 lines
88 B
TypeScript
4 lines
88 B
TypeScript
|
export const getKeys = Object.keys as <T extends object>(
|
||
|
obj: T,
|
||
|
) => Array<keyof T>
|