Skip to content

LanguageServiceHost.readFile is no longer optionalΒ #48276

@mjbvz

Description

@mjbvz

Bug Report

πŸ”Ž Search Terms

  • typescript.d.ts

πŸ•— Version & Regression Information

4.7.0-dev.20220315

⏯ Playground Link

NA

Bug

In typescript.d.ts, LanguageServiceHost.readFile is no longer marked as an optional method in 4.7.0-dev.20220315 (checked by running npm install typescript@next)

This method was still optional in 4.7.0-dev.20220303 and I also see the method is optional in main:

readFile?(path: string, encoding?: string): string | undefined;

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIRelates to the public API for TypeScriptBreaking ChangeWould introduce errors in existing codeRescheduledThis issue was previously scheduled to an earlier milestone

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions