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
It gives compilation error with message property does not exist on typeof Model | IncludedOptions etc
Expected behavior:
It should not give compilation error as query which is created works as expected.
Steps to reproduce:
Create 2 Models eg: Team, Player
Association Team hasMany Players.
Fetch Team and its players.
Related code:
// Two models eg:Team,PlayerTeam.hasMany(Players);// Fetch team and its players let's say I want to apply pagination on players array.// Query will beTeam.findOne({where: {id: 1},include: [{model: Player,limit: 5,offset: 0}// using offset here gives compile error ]})
Workaround
Add @ts-ignore-next-line before the offset property.