File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1825,7 +1825,7 @@ class Benchmark extends EventTarget<
18251825 * });
18261826 */
18271827 constructor ( maybeName : Partial < BenchmarkOptions > ) ;
1828- constructor ( maybeName : string , fn : Function | string , options : Partial < BenchmarkOptions > ) ;
1828+ constructor ( maybeName : string , fn : Function | string , options ? : Partial < BenchmarkOptions > ) ;
18291829 constructor ( maybeName : string | Partial < BenchmarkOptions > | Function , fn ?: Function | string , options : Partial < BenchmarkOptions > = { } ) {
18301830 super ( ) ;
18311831
@@ -2616,7 +2616,7 @@ class Suite extends EventTarget<SuiteOptions> {
26162616 * 'onComplete': onComplete
26172617 * });
26182618 */
2619- add ( name : string , fn : Function | string , options : object ) : object {
2619+ add ( name : string , fn : Function | string , options ?: Partial < BenchmarkOptions > ) : object {
26202620 var suite = this ,
26212621 bench = new Benchmark ( name , fn , options ) ,
26222622 event = new Event < typeof bench , 'add' > ( {
You can’t perform that action at this time.
0 commit comments