Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Dec 5, 2023
1 parent f56ecdc commit b2ea9de
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 44 deletions.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,10 @@
"typescript": "latest",
"vite": "latest",
"vitest": "latest"
},
"pnpm": {
"overrides": {
"typescript": "5.2.2"
}
}
}
4 changes: 2 additions & 2 deletions packages/component-meta/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function createComponentMetaCheckerByJsonConfig(
checkerOptions: MetaCheckerOptions = {},
) {
return createCheckerByJsonConfigBase(
ts,
ts as any,
rootPath,
json,
checkerOptions,
Expand All @@ -22,7 +22,7 @@ export function createComponentMetaChecker(
checkerOptions: MetaCheckerOptions = {},
) {
return createCheckerBase(
ts,
ts as any,
tsconfig,
checkerOptions,
);
Expand Down
4 changes: 2 additions & 2 deletions packages/language-service/tests/utils/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import * as ts from 'typescript';
import { describe, expect, it } from 'vitest';
import { resolveLanguages, resolveServices } from '../../out';

const languages = resolveLanguages(ts);
const services = resolveServices(ts);
const languages = resolveLanguages(ts as any);
const services = resolveServices(ts as any);
const formatter = kit.createFormatter(Object.values(languages), Object.values(services));

export function defineFormatTest(options: {
Expand Down
1 change: 1 addition & 0 deletions packages/typescript-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const init: ts.server.PluginModuleFactory = (modules) => {
},
getExternalFiles(project, updateLevel = 0) {
if (
// @ts-expect-error
updateLevel >= (1 satisfies ts.ProgramUpdateLevel.RootNamesAndUpdate)
|| !externalFiles.has(project)
) {
Expand Down
83 changes: 43 additions & 40 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 b2ea9de

Please sign in to comment.