Skip to content

no errors TypeScript errors reported for .js when enabling checks using // @ts-check  #1004

@reinholdk

Description

@reinholdk

Expected Behaviour

TypeScript errors shall be reported for .js files, if "checkJS": false in tsconfig.json but enabled for a few files selectively using // @ts-check .

Actual Behaviour

no TypeScript errors are reported for such .js files

Steps to Reproduce the Problem

Build the repo linked below, the error in test.js is not reported.

Location of a Minimal Repository that Demonstrates the Issue.

https://github.com/reinholdk/ts-loader-sample

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions