Skip to content

Commit

Permalink
refactor: refine .table() signature
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
  • Loading branch information
jerome-benoit committed Nov 14, 2024
1 parent 40f91cc commit 2f509a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ export class Bench extends EventTarget {
* @returns the tasks results as an array of table records
*/
table (
convert?: (task: Task) => Record<string, number | string> | undefined
): (null | Record<string, number | string> | undefined)[] {
convert?: (task: Task) => Record<string, number | string | undefined>
): (null | Record<string, number | string | undefined>)[] {
return this.tasks.map(task => {
if (task.result) {
return task.result.error
Expand Down

0 comments on commit 2f509a1

Please sign in to comment.