Skip to content

Missing noEmit: true from default tsconfig.json in type stripping docs #57294

Closed
@styfle

Description

@styfle

Affected URL(s)

https://nodejs.org/api/typescript.html#type-stripping

Description of the problem

The recommended tsconfig.json is missing noEmit: true.

Is seems very likely that a user who chooses to author in TS over JS will also want to type check their code.

And if you forget noEmit: true, then you'll accidentally emit JS, which is not needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions