Replace a few type assertions with annotations and satisfies. (#51685)

This commit is contained in:
Daniel Rosenwasser
2022-12-06 11:52:17 -08:00
committed by GitHub
parent af1d91d9d9
commit 3c99d50da5
5 changed files with 68 additions and 68 deletions
+1 -1
View File
@@ -2660,7 +2660,7 @@ export class ProjectService {
this.eventHandler({
eventName: ConfigFileDiagEvent,
data: { configFileName: project.getConfigFilePath(), diagnostics, triggerFile }
} as ConfigFileDiagEvent);
} satisfies ConfigFileDiagEvent);
}
private getOrCreateInferredProjectForProjectRootPathIfEnabled(info: ScriptInfo, projectRootPath: NormalizedPath | undefined): InferredProject | undefined {