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 TypeScript typechecking #138

Closed
Tracked by #360
lastmjs opened this issue Mar 28, 2022 · 1 comment
Closed
Tracked by #360

Improve TypeScript typechecking #138

lastmjs opened this issue Mar 28, 2022 · 1 comment
Milestone

Comments

@lastmjs
Copy link
Member

lastmjs commented Mar 28, 2022

The Generator type in TypeScript cannot currently infer the return type from a yield expression based on the return type of the yield expression, which is causing issues. We really aren't able to have static typings on any async operations, so users will have to put them in themselves to be sure.

Follow these issues:

If TypeScript implements this functionality we should be good, but we should also consider creating our own VS Code plugin to add some Azle-specific types...for example, forcing the user to use the yield keyword if they are calling an async api

@lastmjs
Copy link
Member Author

lastmjs commented Jun 5, 2023

We don't use generators for asynchronous calls anymore

@lastmjs lastmjs closed this as completed Jun 5, 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

2 participants