Skip to content
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

Feature request throws #3

Open
cyberixae opened this issue Nov 28, 2019 · 2 comments
Open

Feature request throws #3

cyberixae opened this issue Nov 28, 2019 · 2 comments

Comments

@cyberixae
Copy link

It would be cool to have some way to document exceptions. Maybe as follows.

throw new Error('foo') // => throws Error('foo')
@cyberixae
Copy link
Author

Also, is there some way to deal with Promises?

Promise.resolve(123) // => resolves to 123
Promise.reject('problem') // => rejects with 'problem'

@danr
Copy link
Owner

danr commented Nov 29, 2019

Good suggestions! I'm not actively working on this project but feel free to send a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants