Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
Suggestion
In#9211: we are planning to enforce the following invariants in our AST forTSDeclareFunction:
bodymust be undefined, so the following is a parsing error:(I don't think it's possible to havedeclarefunctionfoo(){}
declare: falseand a body anyway, since that would be a normal function declaration)- If
declare: true, thenasyncandgeneratorare bothfalse:declareasyncfunctionfoo();declarefunction*foo();
@sosukesuzuki@fisker Do these look safe to you?