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
[bug] Deno fails compiling with generic inference #3997
Comments
Top Level Await is not supported in TypeScript 3.7. We are temporarily getting past this by ignoring the error, but internally TypeScript is not tracking the types right, because it thinks you have invalid syntax. What version of |
3.7.2 |
Interesting though this doesn't appear to be related to the |
@brandonkal what does your |
https://github.com/brandonkal/deno-lib/blob/master/tsconfig.json Maybe I've got something odd going on in my environment. I'm seeing the effect of "strictNullChecks" but now looking at my tsconfig, it is not specified there. I have |
@brandonkal you can't run |
@kitsonk PTAL if this issue is still relevant |
This was always an external issue, and there was outstanding information requested that was outstanding. Closing due to inaction. |
See https://gist.github.com/brandonkal/853c3d1dc53a79d366b6662eaa84bb5f
Details of the bug are contained in the Gist file.
Pinging @kitsonk as he is the TypeScript expert here.
To reproduce, run the file and notice that Deno throws bad TypeScript errors.
tsc
correctly infers the type of the parameters.The text was updated successfully, but these errors were encountered: