Is there a better way to extract Typescript types for use in function args than what I'm doing here? - Drizzle Team