Skip to content

Possibly missing properties in the ts.server.protocol.CompilerOptions interface #57232

Closed

Description

🔍 Search Terms

"server", "protocol", "CompilerOptions"

✅ Viability Checklist

⭐ Suggestion

Just wanted to draw your attention that the ts.server.protocol.CompilerOptions interface is missing recently added properties that are present in ts.CompilerOptions. Like allowImportingTsExtensions, resolvePackageJsonExports, resolvePackageJsonImports, allowArbitraryExtensions , etc. Probably there are more:

export interface CompilerOptions {
allowJs?: boolean;
allowSyntheticDefaultImports?: boolean;
allowUnreachableCode?: boolean;
allowUnusedLabels?: boolean;
alwaysStrict?: boolean;

preserveSymlinks?: boolean;
project?: string;
reactNamespace?: string;
removeComments?: boolean;
references?: ProjectReference[];
rootDir?: string;
rootDirs?: string[];
skipLibCheck?: boolean;

📃 Motivating Example

Similar to: #56785 (comment)

Andrew Branch (@andrewbranch) Could you take a look, please? Perhaps it is worth adding these too?

💻 Use Cases

Index signature covers them all. So this is not a problem. Only felt like those should be explicitly defined.

By the way, deprecated options like suppressExcessPropertyErrors, suppressImplicitAnyIndexErrors most probably have to be removed from ts.server.protocol.CompilerOptions in TypeScript 5.5.

strict?: boolean;
strictNullChecks?: boolean;
suppressExcessPropertyErrors?: boolean;
suppressImplicitAnyIndexErrors?: boolean;
useDefineForClassFields?: boolean;
target?: ScriptTarget | ts.ScriptTarget;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Needs Investigation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions