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

This commit is contained in:
Daniel Rosenwasser authored and GitHub committed 2022-12-06 11:52:17 -08:00
1 parent af1d91d9d9
commit 3c99d50da5
5 files changed
+68 -68

No files matched your search

+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 {