File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
packages/vitest/src/types Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,14 @@ export interface BenchmarkResult extends TinybenchResult {
5252}
5353
5454export type BenchFunction = ( this : BenchFactory ) => Promise < void > | void
55- export type BenchmarkAPI = ChainableFunction <
56- 'skip' | 'only' | 'todo' ,
57- [ name : string | Function , fn ?: BenchFunction , options ?: BenchOptions ] ,
58- void
59- > & {
60- skipIf ( condition : any ) : BenchmarkAPI
61- runIf ( condition : any ) : BenchmarkAPI
55+ type ChainableBenchmarkAPI = ChainableFunction <
56+ 'skip' | 'only' | 'todo' ,
57+ [ name : string | Function , fn ?: BenchFunction , options ?: BenchOptions ] ,
58+ void
59+ >
60+ export type BenchmarkAPI = ChainableBenchmarkAPI & {
61+ skipIf ( condition : any ) : ChainableBenchmarkAPI
62+ runIf ( condition : any ) : ChainableBenchmarkAPI
6263}
6364
6465export {
You can’t perform that action at this time.
0 commit comments