diff --git a/packages/tsc/index.ts b/packages/tsc/index.ts index 05619efbbf..ef04ee560c 100644 --- a/packages/tsc/index.ts +++ b/packages/tsc/index.ts @@ -1,7 +1,6 @@ import { runTsc } from '@volar/typescript/lib/quickstart/runTsc'; import * as vue from '@vue/language-core'; import * as path from 'path' -import type * as ts from 'typescript'; const windowsPathReg = /\\/g; @@ -13,7 +12,7 @@ export function run() { const main = () => runTsc( require.resolve('typescript/lib/tsc'), runExtensions, - (ts, options: ts.CreateProgramOptions) => { + (ts, options) => { const { configFilePath } = options.options; const vueOptions = typeof configFilePath === 'string' ? vue.createParsedCommandLine(ts, ts.sys, configFilePath.replace(windowsPathReg, '/')).vueOptions