@humanspeak/svelte-headless-table
Version:
A powerful, headless table library for Svelte that provides complete control over table UI while handling complex data operations like sorting, filtering, pagination, grouping, and row expansion. Build custom, accessible data tables with zero styling opin
10 lines (9 loc) • 319 B
TypeScript
/**
* 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<Obj> = NonNullable<{
[K in keyof Obj]: [K, NonNullable<Obj[K]>];
}[keyof Obj]>[];