Skip to content

Commit f9240be

Browse files
committed
tweaking types
1 parent 358abc8 commit f9240be

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

benchmark.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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'>({

0 commit comments

Comments
 (0)