Skip to content

setting importsNotUsedAsValue: error does not invalidate .tsbuildinfo #36000

Closed
@ajafff

Description

@ajafff

TypeScript Version: 3.8.0-20200104

Search Terms:

Code

// @filename: tsconfig.json
{ "compilerOptions": { "incremental": true } }

// @filename: a.ts
export class C {}

// @filename: b.ts
import {C} from './a';
export let v: C;
  • compile
  • set "importsNotUsedAsValue": "error" in tsconfig.json
  • recompile

Expected behavior:

Expected error in b.ts

Actual behavior:

No error in b.ts unless the file or one of its dependencies are touched.

Related Issues: #35200 @andrewbranch

PR incoming.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions