From 76321b35e1b3f80f02480de87ff3bd95358f4f58 Mon Sep 17 00:00:00 2001 From: avivkeller Date: Sat, 18 Jul 2026 15:40:42 -0700 Subject: [PATCH 1/4] 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 b3a42183558dc4..d50727b9b1baf2 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1381,6 +1381,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`