Alyx
Alyx
Have you tried the following? ```typescript const Node: ModelDefined & { // extra types here addSomething: HasManyAddAssociationMixin } = sequelize.define(...) ```
It is documented here for v7 https://sequelize.org/api/v7/classes/model#findByPk. v6 is https://sequelize.org/api/v6/class/src/model.js~model#static-method-findByPk but it's much less complete. If someone is willing to open a PR to enhance the jsdoc of that method...
The API reference is wrong here, enums are compatible with at least mariadb, mysql, and postgres. Not sure about the others. This PR https://github.com/sequelize/sequelize/pull/14505/ removed the mention (for v7)
Not yet, we're focus on getting Sequelize 7 ready at the moment `DataTypes.TSVector` is used like this: Creating a TSVector attribute: ```js class User {} User.init({ search: { type: DataTypes.TSVector,...
I don't see it in the readme, but it's in the documentation here: https://sequelize.org/docs/v7/other-topics/dialect-specific-things/#amazon-redshift
I'd say edit your first comment in this thread to add a list there :)
This was added in the v7 rewrite https://sequelize.org/docs/v7/querying/select-in-depth/#referencing-associated-models-in-a-parent-where-clause
I've started working on a full rewrite of the documentation with the following principles: - Have TypeScript versions of our examples where relevant - Avoid relegating important topics to "Other...
You need to set your tsconfig `moduleResolution` option to `node16` or `nodenext`: https://www.typescriptlang.org/docs/handbook/esm-node.html#packagejson-exports-imports-and-self-referencing
Our own tsconfig should not be used as an example, it's overly complicated because we try to support multiple versions of TypeScript I've converted this to a documentation issue