Skip to content
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

Unlock TypeScript's Features in Vanilla JS with @ts-check and JSDoc #2429

Open
brecke opened this issue May 11, 2021 · 1 comment
Open

Unlock TypeScript's Features in Vanilla JS with @ts-check and JSDoc #2429

brecke opened this issue May 11, 2021 · 1 comment

Comments

@brecke
Copy link
Member

brecke commented May 11, 2021

Adding

//@ts-check

at the top of a js file one can unlock the ability to interpret JSDoc as if it was typescript. This is really interesting from a developer ergonomics perspective.

@jimmywarting
Copy link

jimmywarting commented Apr 4, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants