summaryrefslogtreecommitdiff
path: root/std/node/_errors.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/node/_errors.ts')
-rw-r--r--std/node/_errors.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/node/_errors.ts b/std/node/_errors.ts
index 2424303b1..db37e3186 100644
--- a/std/node/_errors.ts
+++ b/std/node/_errors.ts
@@ -1232,7 +1232,7 @@ export class ERR_INVALID_BUFFER_SIZE extends NodeRangeError {
}
}
export class ERR_INVALID_CALLBACK extends NodeTypeError {
- constructor(object: { [key: string]: unknown }) {
+ constructor(object: unknown) {
super(
"ERR_INVALID_CALLBACK",
`Callback must be a function. Received ${JSON.stringify(object)}`,