File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 1
1
import type { ConfigEnv , UserConfig as ViteUserConfig } from 'vite'
2
2
import type { ProjectConfig } from './types'
3
3
4
- export interface UserConfig extends ViteUserConfig {
5
- test ?: ViteUserConfig [ 'test' ] | undefined
6
- }
7
-
8
4
export interface UserWorkspaceConfig extends ViteUserConfig {
9
- test ?: ProjectConfig | undefined
5
+ test ?: ProjectConfig
10
6
}
11
7
12
8
// will import vitest declare test in module 'vite'
13
9
export { configDefaults , defaultInclude , defaultExclude , coverageConfigDefaults } from './defaults'
14
10
export { mergeConfig } from 'vite'
15
11
16
- export type { ConfigEnv }
17
- export type UserConfigFn = ( env : ConfigEnv ) => UserConfig | Promise < UserConfig >
18
- export type UserConfigExport = UserConfig | Promise < UserConfig > | UserConfigFn
12
+ export type { ConfigEnv , ViteUserConfig as UserConfig }
13
+ export type UserConfigFn = ( env : ConfigEnv ) => ViteUserConfig | Promise < ViteUserConfig >
14
+ export type UserConfigExport = ViteUserConfig | Promise < ViteUserConfig > | UserConfigFn
19
15
20
16
export type UserProjectConfigFn = ( env : ConfigEnv ) => UserWorkspaceConfig | Promise < UserWorkspaceConfig >
21
17
export type UserProjectConfigExport = UserWorkspaceConfig | Promise < UserWorkspaceConfig > | UserProjectConfigFn
You can’t perform that action at this time.
0 commit comments