Skip to content

Commit

Permalink
add some ts-ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
machty committed Jan 13, 2024
1 parent 285f555 commit 68042f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/language-server/glint-language-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,15 @@ export default class GlintLanguageServer {
realpath: this.ts.sys.realpath,
useCaseSensitiveFileNames: () => true,

// @ts-ignore Undocumented method.
getCachedExportInfoMap() {
// This hook is required so that when resolving a completion item, we can fetch export info
// cached from the previous call to getCompletions. Without this, attempting to resolve a completion
// item for exports that have at least 2 exports (due to re-exporting) will fail with an error.
// See here for additional details on the ExportInfoMap.
// https://github.com/microsoft/TypeScript/pull/52686

// @ts-expect-error This method does actually exist since 4.4+, but not sure why it's not in the types
// @ts-ignore This method does actually exist since 4.4+, but not sure why it's not in the types
return (exportMapCache ||= ts.createCacheableExportInfoMap({
getCurrentProgram: () => program,
getPackageJsonAutoImportProvider: () => null,
Expand Down

0 comments on commit 68042f1

Please sign in to comment.