Skip to content

Commit

Permalink
Improve types
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierZal committed Dec 9, 2023
1 parent dcef6ec commit 931af16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decorators/addToLogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const addToLogs = <T extends new (...args: any[]) => SimpleClass>(
}
}
if (log in this) {
return [(this as Record<any, any>)[log], '-']
return [this[log as keyof LogsDecorator], '-']
}
return [log, '-']
}),
Expand Down

0 comments on commit 931af16

Please sign in to comment.