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

improve signature of to function #2

Open
phra opened this issue May 1, 2017 · 0 comments
Open

improve signature of to function #2

phra opened this issue May 1, 2017 · 0 comments

Comments

@phra
Copy link
Owner

phra commented May 1, 2017

it would be perfect to change the return type of to function from Promise<[Error, T]> to Promise<[Error, null] | [null, T]> in order to force checking the error before accessing the value.

blocked by microsoft/TypeScript#15484

@phra phra changed the title improve return type of to function improve signature of to function May 2, 2017
Repository owner deleted a comment Dec 26, 2023
Repository owner deleted a comment Dec 26, 2023
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

1 participant