mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-11 16:58:15 -05:00
7 lines
328 B
TypeScript
7 lines
328 B
TypeScript
/**
|
|
* Get the keys of an object. This is a wrapper around `Object.keys` that types the result as an array of the keys of the object.
|
|
* @param obj The object to get the keys of.
|
|
* @returns The keys of the object.
|
|
*/
|
|
export const objectKeys = <T extends Record<string, unknown>>(obj: T) => Object.keys(obj) as Array<keyof T>;
|