Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can early-stage proposals be used in TypeScript?

Tags:

typescript

I want to use a proposal do-expressions in a TypeScript codebase.

Is it possible and how should I configure TypeScript if it is?

like image 665
user15163984 Avatar asked Nov 06 '22 23:11

user15163984


1 Answers

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".

like image 169
jcalz Avatar answered Nov 11 '22 04:11

jcalz