From e11bdfa2d011a04ae91382b52f168d619501597b Mon Sep 17 00:00:00 2001 From: Thomas Toye Date: Thu, 15 Apr 2021 07:28:44 +0200 Subject: [PATCH] Fix callback typing (#342) --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index c284280f..c2cc544e 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -71,7 +71,7 @@ declare namespace schema { type Schema = Type | schema.AvroSchema; -type Callback = (err: Err, value: V) => void; +type Callback = (err: Err | null, value?: V) => void; type Codec = (buffer: Buffer, callback: Callback) => void;