Skip to content

Commit

Permalink
Fix callback typing (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomastoye committed Apr 15, 2021
1 parent ac8d040 commit e11bdfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ declare namespace schema {

type Schema = Type | schema.AvroSchema;

type Callback<V, Err = any> = (err: Err, value: V) => void;
type Callback<V, Err = any> = (err: Err | null, value?: V) => void;


type Codec = (buffer: Buffer, callback: Callback<Buffer>) => void;
Expand Down

0 comments on commit e11bdfa

Please sign in to comment.