Josh Goldberg 7/2/2017

Hacking TypeScript's async/await __awaiter for jQuery 2's "Promises"

Read Original

This article provides a deep dive into the TypeScript compiler's __awaiter helper, explaining how to modify its output to make modern async/await syntax compatible with jQuery 2's legacy, non-A+ compliant Promise implementation. It's aimed at developers transitioning from jQuery 2 to 3 who need interim solutions.

Hacking TypeScript's async/await __awaiter for jQuery 2's "Promises"

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes