Hey guys, I'm doing maintenance on the query builder, and I'm trying to modify it so that you don't have to pass generics to the function and the builder can infer types from the table passed at the beginning. To improve DX from my team.
The query builder is functional, but with my modifications if i no pass generics, my select method allow only the intersection from database that is passed in .database() method.
What I am missing to make everything more dynamic here? The method allow only intersection has to do with depth of object (DataBase type)?
The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.