/** * Converts an object type to its entries type (array of [key, value] tuples). * Similar to the return type of Object.entries() but with stronger typing. * * @template Obj - The object type to convert. */ export type Entries = NonNullable<{ [K in keyof Obj]: [K, NonNullable]; }[keyof Obj]>[];