MySqlInsertValue<> vs typeof Table type mismatch
I've got this line of code:
Where
The variables in there are typed like:
The
What might be causing this problem?
Where
props is showing a TS problem:The variables in there are typed like:
The
ModelMap is an index of all the different types generated by various drizzle schemas I have, so that they are available for quick reference by just passing T.ModelMap[T]['model'] is equivalent to typeof SomeTable and ModelMap[T]['select'] is equivalent to InferModel<typeof SomeTable>What might be causing this problem?