Skip to content

Commit de4cdb9

Browse files
authored
fix(types): import Mock type from vitest (#43)
The `Mock` type is exported by `vitest`, so importing from `@vitest/spy` is unnecessary. Also, when installed with pnpm, the `@vitest/spy` package is inaccessible to the type definitions of this package, because `@vitest/spy` is not a dependency of it.
1 parent 33b5dcc commit de4cdb9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { vi as vitest } from 'vitest';
2-
import type { Mock } from '@vitest/spy';
1+
import { vi as vitest, type Mock } from 'vitest';
32

43
declare global {
54
// eslint-disable-next-line no-var

0 commit comments

Comments
 (0)