-
Notifications
You must be signed in to change notification settings - Fork 59
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
check .d.ts files #849
Comments
I have no strong feelings about it, that said it’s not just our linter, typescript itself (or at least vscode) seems to not report lot of issues either. I often change file extension to .ts and then back. Aegir also has to do some special handling of .d.ts files. All this custom setup and divergence from default toolchains makes things harder for everyone. I wonder what were the reasons to switching from .ts files to .d.ts (which worked as expected with native toolchains) and whether those reasons still make sense and do a outweigh tradeoffs. |
This is basically a nightmare. The only way to check your
Not sure we ever switched - we wanted We then backtracked a little and added The tooling for |
We definitely have switched because typedefs I've originally put in ipfs-core-types had |
Checked history and it seems like this is a change that did it ipfs/js-ipfs@a418a52#diff-ecc32b520be57da677d45d1b0c7d5f883328286d8de03159de95e1eb680d08df |
`.d.ts` files are not type checked as they are usually machine generated. Switch to using `.ts` files instead so we get some compiler safety. Refs: ipfs/aegir#849
`.d.ts` files are not type checked as they are usually machine generated. Switch to using `.ts` files instead so we get some compiler safety. Refs: ipfs/aegir#849
`.d.ts` files are not type checked as they are usually machine generated. Switch to using `.ts` files instead so we get some compiler safety. Refs: ipfs/aegir#849
`.d.ts` files are not type checked as they are usually machine generated. Switch to using `.ts` files instead so we get some compiler safety. Refs: ipfs/aegir#849
Closing as the resolution is to declare types in |
`.d.ts` files are not type checked as they are usually machine generated. Switch to using `.ts` files instead so we get some compiler safety. Refs: ipfs/aegir#849
We don't appear to run any sort of checking on
.d.ts
files, this means the syntax across modules is inconsistent and worse, we can ship with syntax errors and other obvious-in-hindsight bugs.Some suggestions:
.d.ts
files.d.ts
files to catch things like:(1) is quite straight forward but for (2) maybe we could include a tsd test command?
The text was updated successfully, but these errors were encountered: