Skip to content

I want to write explicit .ts file extension in typescript project, and let the compiled file to have .js extension.Β #55346

@xieyuheng

Description

@xieyuheng

πŸ” Search Terms

explicit .ts file extension

βœ… Viability Checklist

⭐ Suggestion

Add a config option to write explicit .ts file extension in typescript project, and let the compiled file to have .js extension.

πŸ“ƒ Motivating Example

It feels wrong to import .ts file as .js file in typescript project.

πŸ’» Use Cases

  1. What do you want to use this for?

    I want to write explicit .ts file extension in typescript project, and let the compiled file to have .js extension.

  2. What shortcomings exist with current approaches?

    It feels wrong to import .ts file as .js file in typescript project.

  3. What workarounds are you using in the meantime?

    Write .js file extension in typescript project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions