mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-31 03:39:21 +01:00
* feat: update prettier configuration for print width * chore: apply code formatting to entire repository * fix: remove build files * fix: format issue --------- Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
10 lines
271 B
TypeScript
10 lines
271 B
TypeScript
export function objectKeys<O extends object>(obj: O): (keyof O)[] {
|
|
return Object.keys(obj) as (keyof O)[];
|
|
}
|
|
|
|
type Entries<T> = {
|
|
[K in keyof T]: [K, T[K]];
|
|
}[keyof T][];
|
|
|
|
export const objectEntries = <T extends object>(obj: T) => Object.entries(obj) as Entries<T>;
|