diff --git a/src/bench.ts b/src/bench.ts index c20fc6f..8533fe1 100644 --- a/src/bench.ts +++ b/src/bench.ts @@ -222,8 +222,8 @@ export class Bench extends EventTarget { * @returns the tasks results as an array of table records */ table ( - convert?: (task: Task) => Record | undefined - ): (null | Record | undefined)[] { + convert?: (task: Task) => Record + ): (null | Record)[] { return this.tasks.map(task => { if (task.result) { return task.result.error