I want to use a proposal do-expressions in a TypeScript codebase.
Is it possible and how should I configure TypeScript if it is?
Unfortunately, no. See microsoft/TypeScript#13156 for an authoritative answer.
As of 2022/01/02, TypeScript does not support the do-expressions proposal. That proposal is currently at Stage 1 of the TC39 Process, but TypeScript generally waits until proposals reach Stage 3 before implementing them. The relevant feature request at microsoft/TypeScript#13156 is therefore marked as "waiting for TC39".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With