Nikola
Dynamic return type based on provided select array
Took 2 hours but I think I figured it out.
Here's my solution for anyone else who might stumble upon this problem.
Feel free to leave better/smarter/faster/shorter alternatives.
Now:
correctly resolves to:
const billableUsers: {id: string, work_email: string}[]
3 replies