| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
LGTM
I was actually seeing the same error while using dnt
Sorry, something went wrong.
|
@kitsonk I'm in favor of this change, but I'm not sure why this is ok in std and causes type error when using dnt transformation. Can this be somehow tested in std's CI? |
Sorry, something went wrong.
|
@kt3k no, because it only occurs when using tsc directly and not targeting esnext. The fix is in TypeScript 4.6, and this is the PR that fixed it: microsoft/TypeScript#29374. You cannot force Deno to typecheck in non-esnext mode. The only way to manifest this would be to run some sort of process the converts everything via dnt to "node" code and then runs tsc against it, and I see that seperate to this PR if such a thing is desired. |
Sorry, something went wrong.
|
Thanks for the explanation and creating the issue! Oh, that birthday cake PR! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This gets rid of the error messages like the following when using io/buffer.ts under tsc directly via dnt:
While this is being fixed in future version of TypeScript, it is a limitation that is easy to work around and allows people to use the std lib via dnt without type errors.