Is it possible somehow to have type checking on these situations?
import { User } from './models/User';
await User.create({
// <-- type checking here for User props
});
User.destroy({
where: {
// <-- type checking here for User props
}
});
// etc
Hey @spinlud, yeah it is indeed possible, but need to be implemented in sequelize. (Since version 1.0.0 sequelize-typescript uses the official typings provided by sequelize). I'm planning to create a PR for that.
Ok! Let me know if I can help in anyway ;-)
Most helpful comment
Hey @spinlud, yeah it is indeed possible, but need to be implemented in sequelize. (Since version 1.0.0 sequelize-typescript uses the official typings provided by sequelize). I'm planning to create a PR for that.