TypeScript keyof index type is too wide
If you expect the keys of T to be a union of literals like “bong” | “bing” | … (and not just string), then you can express a type which is itself the union of Column<T, K> for each key K in keyof T. I usually do this via immediately indexing (lookup) into a mapped … Read more