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

Examples in typescript #72

Open
rajjaiswalsaumya opened this issue Jul 13, 2019 · 1 comment
Open

Examples in typescript #72

rajjaiswalsaumya opened this issue Jul 13, 2019 · 1 comment

Comments

@rajjaiswalsaumya
Copy link

I dont get how #13 is in typescript. Can you add concrete examples in typescript for basic.

I cant use javascript syntax such as var.
For me await does not work.
I am calling an api and trying to await for promise resolution.

@yortus
Copy link
Owner

yortus commented Jul 15, 2019

Hi @rajjaiswalsaumya, these days you shouldn't need to use this library for basic scenarios like in #13. TypeScript and JavaScript have native async/await syntax built in to the language now. Even if you are using an environment where native async/await are not supported, TypeScript will downlevel it to equivalent ES5 code for you.

If you are still having trouble, can you post some sample code showing the problem you're having?

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