-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Type check JS with typescript #14017
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
Comments
Given that we're shipping TypeScript definitions in pdfjs-dist, aren't we already doing this at least partially? Please note Lines 1375 to 1392 in 064c21d
Lines 1695 to 1726 in 064c21d
Lines 2350 to 2357 in 064c21d
|
Looking at https://www.typescriptlang.org/docs/handbook/compiler-options.html#compiler-options, there's a I tried adding that to our existing
|
/cc @michael-yx-wu @ineiti @tamuratak Would one you perhaps be able to help out with this, given your TypeScript familiarity? |
In mozilla-central some parts of the code base are now using typescript to do type checks on regular JS that is annotated with jsdoc comments. This could be nice to help us enforce documentation for the API and maybe prevent some bugs.
Example config and JS files that are checked get
@ts-check
.The text was updated successfully, but these errors were encountered: