Skip to content

jsdoc template no check #43697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
awerlogus opened this issue Apr 15, 2021 · 1 comment
Closed

jsdoc template no check #43697

awerlogus opened this issue Apr 15, 2021 · 1 comment
Assignees
Labels
Bug A bug in TypeScript checkJs Relates to checking JavaScript using TypeScript

Comments

@awerlogus
Copy link

Bug Report

🔎 Search Terms jsdoc template missing no check

🕗 Version & Regression Information 4.3.0-dev.20210415

💻 Code

in ts code everything is ok

// Argument of type 'number' is not assignable to parameter of type 'T'
const a: <T>(func: (x: T, y: T) => T, x: T) => T = (func, x) => func(x, 2)

in js code no error

/** @type {<T>(func: (x: T, y: T) => T, x: T) => T} */
const a = (func, x) => func(x, 2)

🙁 Actual behavior

no error in js code

🙂 Expected behavior

the same error as in ts code

@andrewbranch andrewbranch added Bug A bug in TypeScript checkJs Relates to checking JavaScript using TypeScript labels Apr 16, 2021
@andrewbranch andrewbranch added this to the TypeScript 4.4.0 milestone Apr 16, 2021
@sandersn
Copy link
Member

Duplicate of #42060

@sandersn sandersn marked this as a duplicate of #42060 Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript checkJs Relates to checking JavaScript using TypeScript
Projects
None yet
Development

No branches or pull requests

3 participants