From 9042fcc12e7774cdd0ca3a5d08918a07dae8102b Mon Sep 17 00:00:00 2001 From: Steven Guerrero Date: Thu, 26 Nov 2020 07:50:08 -0500 Subject: feat(std/node/stream): Add Duplex, Transform, Passthrough, pipeline, finished and promises (#7940) --- std/node/_errors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std/node/_errors.ts') 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)}`, -- cgit v1.2.3