import { hashKey } from "@tanstack/query-core"; export function objectKeys(obj: O): (keyof O)[] { return Object.keys(obj) as (keyof O)[]; } type Entries = { [K in keyof T]: [K, T[K]]; }[keyof T][]; export const objectEntries = (obj: T) => Object.entries(obj) as Entries; export const hashObjectBase64 = (obj: object) => { return Buffer.from(hashKey([obj])).toString("base64"); };