You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sequelize.query typings are not allowing model property in typings (v5) #10506
sequelize.query(/* my query here */,{type: QueryTypes.SELECT,model: ResolvedTag,transaction: tx})
What do you expect to happen?
Should permit specifying the model that should be returned (populated) for rows selected.
What is actually happening?
error TS2345: Argument of type '{ type: QueryTypes; model: typeof ResolvedTag; transaction: Transaction; }' is not assignable to parameter of type 'QueryOptions \| QueryOptionsWithType \| u ndefined'.
Dialect: mysql Dialect version: 1.6.5 Database version:mariadb:10.2 - 907f5f6c749d Sequelize version: 5.0.0-beta.16 Tested with latest release: Yes
Activity
SimonSchick commentedon Mar 6, 2019
Can you please provide a full example?
SimonSchick commentedon Mar 6, 2019
@sushantdhiman can we add a
TypeScripttag for this kind of stuff?sushantdhiman commentedon Mar 7, 2019
There is a "typings" label for this sort of stuff @SimonSchick