From 0552489b91a4fda8585894277f96517903c6538a Mon Sep 17 00:00:00 2001 From: avivkeller Date: Sat, 18 Jul 2026 15:40:42 -0700 Subject: [PATCH 1/7] repl: add experimental TypeScript support Signed-off-by: Aviv Keller --- doc/api/cli.md | 12 ++++++++++++ doc/node.1 | 5 +++++ lib/internal/repl/eval.js | 26 +++++++++++++++++++++++--- src/node_options.cc | 4 ++++ src/node_options.h | 1 + test/parallel/test-repl-typescript.mjs | 25 +++++++++++++++++++++++++ 6 files changed, 70 insertions(+), 3 deletions(-) create mode 100644 test/parallel/test-repl-typescript.mjs diff --git a/doc/api/cli.md b/doc/api/cli.md index 76f2aecf75b6..ac578c95f438 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1385,6 +1385,18 @@ added: Enable experimental support for the QUIC protocol. +### `--experimental-repl-typescript` + + + +> Stability: 1.0 - Early development + +Enable experimental support for TypeScript stripping in the REPL. Input that is +valid JavaScript is evaluated as JavaScript before falling back to TypeScript +type stripping. + ### `--experimental-sea-config`