Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions packages/vitest/src/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import type {
Custom as Custom_,
DoneCallback as DoneCallback_,
File as File_,
RuntimeContext as RuntimeContext_,
Suite as Suite_,
SuiteHooks as SuiteHooks_,
Task as Task_,
TaskBase as TaskBase_,
TaskResult as TaskResult_,
Expand Down Expand Up @@ -63,20 +61,6 @@ import type {
RootAndTarget as RootAndTarget_,
TscErrorInfo as TscErrorInfo_,
} from '../typecheck/types'
import type {
Environment as Environment_,
EnvironmentReturn as EnvironmentReturn_,
ResolvedTestEnvironment as ResolvedTestEnvironment_,
VmEnvironmentReturn as VmEnvironmentReturn_,
} from '../types/environment'
import type {
ArgumentsType as ArgumentsType_,
Arrayable as Arrayable_,
Awaitable as Awaitable_,
Constructable as Constructable_,
MutableArray as MutableArray_,
Nullable as Nullable_,
} from '../types/general'
import type {
WorkerRPC as WorkerRPC_,
} from '../types/worker'
Expand Down Expand Up @@ -149,11 +133,6 @@ export type TaskResultPack = TaskResultPack_
/** @deprecated don't use `DoneCallback` since it's not supported */
export type DoneCallback = DoneCallback_

/** @deprecated internal type, don't use it */
export type RuntimeContext = RuntimeContext_
/** @deprecated internal type, don't use it */
export type SuiteHooks = SuiteHooks_

export type { AssertType } from '../typecheck/assertType'
export { expectTypeOf } from '../typecheck/expectTypeOf'
export type { ExpectTypeOf } from '../typecheck/expectTypeOf'
Expand All @@ -175,35 +154,13 @@ export type {
UserConsoleLog,
} from '../types/general'

/** @deprecated do not use, internal helper */
export type Awaitable<T> = Awaitable_<T>
/** @deprecated do not use, internal helper */
export type Nullable<T> = Nullable_<T>
/** @deprecated do not use, internal helper */
export type Arrayable<T> = Arrayable_<T>
/** @deprecated do not use, internal helper */
export type ArgumentsType<T> = ArgumentsType_<T>
/** @deprecated do not use, internal helper */
export type MutableArray<T extends readonly any[]> = MutableArray_<T>
/** @deprecated do not use, internal helper */
export type Constructable = Constructable_

export type {
RunnerRPC,
RuntimeRPC,
} from '../types/rpc'

export type { BrowserUI } from '../types/ui'

/** @deprecated import from `vitest/environments` instead */
export type EnvironmentReturn = EnvironmentReturn_
/** @deprecated import from `vitest/environments` instead */
export type VmEnvironmentReturn = VmEnvironmentReturn_
/** @deprecated import from `vitest/environments` instead */
export type Environment = Environment_
/** @deprecated do not use it */
export type ResolvedTestEnvironment = ResolvedTestEnvironment_

export type {
ContextRPC,
ContextTestEnvironment,
Expand Down
2 changes: 1 addition & 1 deletion test/cli/custom.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Environment } from 'vitest'
import type { Environment } from 'vitest/environments'
import vm from 'node:vm'
import debug from 'debug'

Expand Down
2 changes: 1 addition & 1 deletion test/core/vitest-environment-custom/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Environment } from 'vitest'
import type { Environment } from 'vitest/environments'
import vm from 'node:vm'
import debug from 'debug'

Expand Down
Loading