filmov
tv
VS Code tips — Automatic awaits in JavaScript and TypeScript

Показать описание
Today's VS Code tip: automatic awaits
When you trigger suggestions on a promise in JavaScript or TypeScript, VS Code suggests properties from the wrapped value. Accept one of these and an await is automatically inserted.
The can really speed up writing asynchronous code.
When you trigger suggestions on a promise in JavaScript or TypeScript, VS Code suggests properties from the wrapped value. Accept one of these and an await is automatically inserted.
The can really speed up writing asynchronous code.