-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: APIRelates to the public API for TypeScriptRelates to the public API for TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue
Milestone
Description
Bug Report
π Search Terms
LanguageServiceHost useCaseSensitiveFileNames
π Version & Regression Information
- This changed between versions 4.7.0-dev.20220311 and 4.7.0-dev.20220312
β― Playground Link
N/A, requires import statement which isn't possible in the playground
π» Code
import * as ts from 'typescript';Yep, that's it.
π Actual behavior
The following error is generated:
node_modules/typescript/lib/typescript.d.ts:5716:15 - error TS2430: Interface 'LanguageServiceHost' incorrectly extends interface 'MinimalResolutionCacheHost'. Types of property 'useCaseSensitiveFileNames' are incompatible.
Type '(() => boolean) | undefined' is not assignable to type 'boolean | (() => boolean)'.
Type 'undefined' is not assignable to type 'boolean | (() => boolean)'.
5716 interface LanguageServiceHost extends GetEffectiveTypeRootsHost, MinimalResolutionCacheHost {
~~~~~~~~~~~~~~~~~~~
Found 1 error in node_modules/typescript/lib/typescript.d.ts:5716
π Expected behavior
TypeScript should compile without errors.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: APIRelates to the public API for TypeScriptRelates to the public API for TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue