Skip to content

Commit

Permalink
chore: fix types for ts 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Oct 30, 2023
1 parent 075c663 commit 916659e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 31 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"devDependencies": {
"@types/node": "latest",
"@volar/language-service": "~1.10.5",
"typescript": "latest",
"typescript": "next",
"vite": "latest",
"vitest": "latest"
},
Expand Down
5 changes: 2 additions & 3 deletions packages/typescript-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@ const init: ts.server.PluginModuleFactory = (modules) => {
}
}
},
getExternalFiles(project, updateLevel = -1) {
getExternalFiles(project, updateLevel = 0) {
if (
// @ts-expect-error wait for TS 5.3
updateLevel >= 1 satisfies ts.ProgramUpdateLevel.RootNamesAndUpdate
updateLevel >= (1 satisfies ts.ProgramUpdateLevel.RootNamesAndUpdate)
|| !externalFiles.has(project)
) {
const oldFiles = externalFiles.get(project);
Expand Down
54 changes: 27 additions & 27 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 916659e

Please sign in to comment.