-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for basic TS assertion signature syntax (#504)
Fixes #503 The previous code didn't handle the basic case `asserts x`, which I just overlooked when backporting Babel parser changes. The new code has a special case for that and conditionally tells the caller whether to parse a type afterward. I also made the contract a little simpler; it either fully parses the return type or it doesn't.
- Loading branch information
1 parent
8e4afa1
commit c1976a6
Showing
2 changed files
with
43 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters