File tree 1 file changed +8
-7
lines changed
packages/vitest/src/types
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 {
52
52
}
53
53
54
54
export 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
62
63
}
63
64
64
65
export {
You can’t perform that action at this time.
0 commit comments