🔎 Search Terms
jsdoc ts2502 ts(2502)
🕗 Version & Regression Information
- This changed between versions : no
- This changed in commit or PR : no
- This is the behavior in every version I tried: the version builtin vscode and i tried the nightly version
⏯ Playground Link
No response
💻 Code
import Sequelize, { Model } from "@sequelize/core";
/**
* init models
*/
export function initModels(sequelize: Sequelize, models: (typeof Model)[])
{
models.forEach((o) =>
{
});
// for(let o of models)
// {}
}
/**
* init models
* @param {Sequelize} sequelize
* @param {(typeof Model)[]} models
*/
export function initModels(sequelize, models)
{
models.forEach((o) =>
{
});
// for(let o of models)
// {}
}
🙁 Actual behavior
get ts2502 in jsdoc, but pass in ts
🙂 Expected behavior
all get pass
Additional information about the issue
I found that it can pass normally without using forEach or any other Array methods

🔎 Search Terms
jsdoc ts2502 ts(2502)
🕗 Version & Regression Information
⏯ Playground Link
No response
💻 Code
🙁 Actual behavior
get ts2502 in jsdoc, but pass in ts
🙂 Expected behavior
all get pass
Additional information about the issue
I found that it can pass normally without using forEach or any other Array methods