Skip to content

Commit

Permalink
chore: remove unneeded type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Apr 3, 2024
1 parent b685836 commit 2066010
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/tsc/index.ts
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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
Expand Down

0 comments on commit 2066010

Please sign in to comment.