Skip to content

Commit

Permalink
Merge pull request #308 from deongroenewald/fix/value-callback-type
Browse files Browse the repository at this point in the history
Fix breaking change in types introduced by `ValueCallback`
  • Loading branch information
ericyhwang authored May 27, 2024
2 parents 1c10bba + 65f8bea commit 4d153f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/mutators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var RemoveEvent = mutationEvents.RemoveEvent;
var MoveEvent = mutationEvents.MoveEvent;
var promisify = util.promisify;

type ValueCallback<T> = ((error: Error | null | undefined, value: T) => void);
type ValueCallback<T> = ((error: Error | undefined, value: T) => void);

declare module './Model' {
interface Model<T> {
Expand Down

0 comments on commit 4d153f3

Please sign in to comment.