Hacker News new | ask | show | jobs
by ducaale 1832 days ago
It might be possible to have a babel macro function that inspects the passed SQL query and generate TS type from it.

However, the query might contain a wild card which means the macro function will also need access to the current DB schema.