From 4442540d368cdec35ee8b11fb42b03c1b24971e4 Mon Sep 17 00:00:00 2001 From: RedYetiDev <38299977+RedYetiDev@users.noreply.github.com> Date: Fri, 9 Aug 2024 20:14:28 -0400 Subject: [PATCH] process: add `process.features.typescript` --- doc/api/process.md | 15 +++++++++++++ lib/internal/bootstrap/node.js | 21 ++++++++++++++++++ test/es-module/test-typescript.mjs | 28 ++++++++++++++++++++++++ test/parallel/test-process-features.js | 30 ++++++++++++++------------ 4 files changed, 80 insertions(+), 14 deletions(-) diff --git a/doc/api/process.md b/doc/api/process.md index 356b91b69a2208..1e7939c254f73d 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -1982,6 +1982,21 @@ A boolean value that is `true` if the current Node.js build includes support for *** +## `process.features.typescript` + + + +> Stability: 1.0 - Early development + +* {boolean|string} + +A value that is `"strip"` if Node.js is run with `--experimental-strip-types`, +`"transform"` if Node.js is run with `--experimental-transform-types`, and `false` otherwise. + +*** + ## `process.features.uv`