Skip to content

Commit 093c8f6

Browse files
authored
fix(types): bench.reporters no longer gives type errors when passing file name string paths (#9695)
1 parent 4d7938a commit 093c8f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/vitest/src/node/types/benchmark.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ export interface BenchmarkUserOptions {
2525
includeSource?: string[]
2626

2727
/**
28-
* Custom reporter for output. Can contain one or more built-in report names, reporter instances,
29-
* and/or paths to custom reporters
28+
* Custom reporters to use for output. Can contain one or more built-in reporter names, reporter instances,
29+
* and/or paths to custom reporter files to import.
3030
*
3131
* @default ['default']
3232
*/
33-
reporters?: Arrayable<BenchmarkBuiltinReporters | Reporter>
33+
reporters?: Arrayable<BenchmarkBuiltinReporters | Reporter | (string & {})>
3434

3535
/**
3636
* @deprecated Use `benchmark.outputJson` instead

0 commit comments

Comments
 (0)