Extract type from drizzle join for use elsewhere or exporting
I get the type in the same function scope like so
eventRecurringPatterns
is typed with {event ,recurring_pattern}
but how do I extract this type for use in other function params? Maybe with Parameters<typeof theJoin>
I want to avoid doing it manually
I imagine it starts something like this screenshot2 Replies
here is what I want to type automatically for use in this method param
Why doesn't it work? What's the error?