3 ms·
Since you're generating types anyway, can't this be simplified to `tableTypes[T]['Selectable']`?
by Kinrany 6y ago
Since you're generating types anyway, can't this be simplified to `tableTypes[T]['Selectable']`?
- gmac 6y agoNice thought, thanks, but I don't think so. The way things are set up, your `tableTypes[T]` would need to map table names to namespaces, and this gives errors like "Cannot use namespace 'X' as a type". Would be pleased to be proved wrong, though. :)