Skip to content

[api-extractor] Feature Request: Auto-upgrade module-keyword namespaces #5303

@robpalme

Description

@robpalme

Summary

TypeScript 6.0 will deprecate the module-keyword for namespaces sometime around Q4 2025.

api-extractor can aid the migration to the preferred namespace syntax by always emitting the modern syntax in the generated DTS. This auto-upgrade is something TypeScript, SWC, and Oxc already do.

Details

I tried out the latest api-extractor 7.52.10 and found that it does not perform this conversion today.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions