From 3317be7519b250e1ad858a4748d74c90c283453b 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 1/2] process: add `process.features.typescript` --- doc/api/process.md | 13 +++++++++++ lib/internal/bootstrap/node.js | 21 ++++++++++++++++++ test/es-module/test-typescript.mjs | 28 ++++++++++++++++++++++++ test/parallel/test-process-features.js | 30 ++++++++++++++------------ 4 files changed, 78 insertions(+), 14 deletions(-) diff --git a/doc/api/process.md b/doc/api/process.md index c8ccfdc233a405..3b4f8effc4fc53 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -1976,6 +1976,19 @@ added: v0.5.3 A boolean value that is `true` if the current Node.js build includes support for SNI in TLS. +## `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`