What is Downleveling in TypeScript?
New FeaturesDownleveling refers to the process of transpiling modern TypeScript code into an older version of JavaScript. It allows developers to target older JavaScript runtime environments that may not support the latest features and syntax introduced in newer versions of ECMAScript.
When downleveling is applied, TypeScript’s compiler (tsc
) converts your source code into an older version of JavaScript that is compatible with the specified target environment.