TypeScript · Senior · Question 17 of 75

What does the erasableSyntaxOnly flag (TS 5.8) forbid?

Explanation

Node.js can run TypeScript by simply erasing types (type stripping). Constructs that require code generation don't work that way. The flag reports them in advance so the code runs without a separate compile step.

Further reading

Problem with a question

TypeScript · Senior · question 17

Test yourself

Take the TypeScript · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz