-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
'async' modifier cannot be used in an ambient context.ts #36989
Comments
was going to post about this right now, the behavior from JS / TS is definitely off |
Tests should probably include a test for generators too. |
with typescript 3.7.5 work well |
Seems like this is fixed in the nightlies. @weswigham can you verify, track down the fix, and cherry-pick it? |
This issue related to the method |
@a-tarasyuk it regressed in #35731 probably, since prior to that we weren't pulling on "original" modifier flags from anywhere.
|
This includes the fix for microsoft/TypeScript#36989 which was blocking the typescript-ification of `host`. R=szuend@chromium.org DISABLE_THIRD_PARTY_CHECK=Update typescript Bug: 1011811 Change-Id: I637861d247ce4b696b0177e0bd8cd31243a47f98 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2083148 Reviewed-by: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
This includes the fix for microsoft/TypeScript#36989 which was blocking the typescript-ification of `host`. R=szuend@chromium.org DISABLE_THIRD_PARTY_CHECK=Update typescript Bug: 1011811 Change-Id: I637861d247ce4b696b0177e0bd8cd31243a47f98 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2083148 Reviewed-by: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
TypeScript Version: 3.8.2
Search Terms: allowJs declaration 'async' modifier cannot be used in an ambient context.ts
Code
see code
when run tsc with allowJs and declaration flags enabled the code below
produce the declaretion:
but when a try to use this class I receive 'async' modifier cannot be used in an ambient context.ts(1040)
Expected behavior:
the TestJS.d.ts shouldn't contain async
Actual behavior:
TestJS.d.ts conteins async
Playground Link: code
Related Issues:
The text was updated successfully, but these errors were encountered: