[node] Correct type of TransformCallback

This commit is contained in:
Elrendio
2019-02-08 15:17:12 +01:00
parent 510f81374c
commit 7b06bb4f0b

View File

@@ -222,7 +222,7 @@ declare module "stream" {
uncork(): void;
}
type TransformCallback = (error?: Error, data?: any) => void;
type TransformCallback = (error?: Error | null, data?: any) => void;
interface TransformOptions extends DuplexOptions {
read?(this: Transform, size: number): void;