Skip to content

node:module stripTypeScriptTypes is documented but is not actually supported #25058

@hsheth2

Description

@hsheth2

What is the type of issue?

Documentation is incorrect

What is the issue?

The docs (https://bun.sh/docs/runtime/nodejs-compat#node:module and https://bun.com/reference/node/module/default/stripTypeScriptTypes) seem to suggest that this method is available.

However, it is not actually supported by Bun - I ran a quick test (see below) and also double-checked with a search. The only related issue I could find was #14973.

❯ bun repl
Welcome to Bun v1.3.3
Type ".help" for more information.
[!] Please note that the REPL implementation is still experimental!
    Don't consider it to be representative of the stability or behavior of Bun overall.
> import { stripTypeScriptTypes } from "node:module";
SyntaxError: Import named 'stripTypeScriptTypes' not found in module 'node:module'.

Where did you find it?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions