Skip to content

Commit

Permalink
Fix missing type on module boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
mrginglymus committed Jan 21, 2025
1 parent fee02a1 commit ce13a71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/vitest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
},
"peerDependencies": {
"@edge-runtime/vm": "*",
"@types/debug": "^4.1.12",
"@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
"@vitest/browser": "workspace:*",
"@vitest/ui": "workspace:*",
Expand All @@ -133,6 +134,9 @@
"@edge-runtime/vm": {
"optional": true
},
"@types/debug": {
"optional": true
},
"@types/node": {
"optional": true
},
Expand Down
3 changes: 2 additions & 1 deletion packages/vitest/src/utils/debugger.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Debugger } from 'debug'
import createDebug from 'debug'

export function createDebugger(namespace: `vitest:${string}`) {
export function createDebugger(namespace: `vitest:${string}`): Debugger | undefined {
const debug = createDebug(namespace)
if (debug.enabled) {
return debug
Expand Down

0 comments on commit ce13a71

Please sign in to comment.