Type Helper to select fields
Hello there ! A picture is worth a thousands words. I'm trying to write this helper, but it breaks inference. Does anyone know of something that could work ?

3 Replies
any news about the solution for this?
The problem here is that there is no connection between the
Select helper and the columns type
Typescript is not able to bridge the connection there, typescript just sees that Select is some Record<string, boolean>There is a solution here
https://discord.com/channels/1043890932593987624/1129395697200939038
but there are still cases where is not perfect