Skip to content

Commit fdff1bf

Browse files
authored
fix(ui): don't leak vite types (#10005)
1 parent a4523a0 commit fdff1bf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/ui/node/index.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import type { Plugin } from 'vite'
2-
import type { Vitest } from 'vitest/node'
1+
import type { Vite, Vitest } from 'vitest/node'
32
import fs from 'node:fs'
43
import { fileURLToPath } from 'node:url'
54
import { join, resolve } from 'pathe'
@@ -8,7 +7,7 @@ import c from 'tinyrainbow'
87
import { isFileServingAllowed, isValidApiRequest } from 'vitest/node'
98
import { version } from '../package.json'
109

11-
export default (ctx: Vitest): Plugin => {
10+
export default (ctx: Vitest): Vite.Plugin => {
1211
if (ctx.version !== version) {
1312
ctx.logger.warn(
1413
c.yellow(
@@ -19,7 +18,7 @@ export default (ctx: Vitest): Plugin => {
1918
)
2019
}
2120

22-
return <Plugin>{
21+
return <Vite.Plugin>{
2322
name: 'vitest:ui',
2423
apply: 'serve',
2524
configureServer: {

0 commit comments

Comments
 (0)