Skip to content

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

Closed
@mrazauskas

Description

@mrazauskas

πŸ” 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)

@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;

Metadata

Metadata

Assignees

Labels

Needs InvestigationThis issue needs a team member to investigate its status.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions