Skip to content

Commit 17433f8

Browse files
committed
fix: fix type of SyncJob and AsyncJob
1 parent 7d96467 commit 17433f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/measure.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
import { calculateStats, currentMillis, formatMillis, Stats } from './utils'
2626

27-
export type AsyncJob = () => Promise<void>
28-
export type SyncJob = () => void
27+
export type AsyncJob = () => Promise<unknown>
28+
export type SyncJob = () => unknown
2929

3030
/**
3131
* Measures the execution times of an async function.

0 commit comments

Comments
 (0)