Skip to content

Commit

Permalink
fix: incorrect return type for async produceWithPatches (#933)
Browse files Browse the repository at this point in the history
  • Loading branch information
mylesj committed May 11, 2022
1 parent 285fff9 commit 9f7623d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/types-external.ts
Expand Up @@ -248,7 +248,7 @@ export interface IProduceWithPatches {
base: Base,
recipe: (draft: D) => Promise<ValidRecipeReturnType<Base>>,
listener?: PatchListener
): PatchesTuple<Promise<Base>>
): Promise<PatchesTuple<Base>>
}

// Fixes #507: bili doesn't export the types of this file if there is no actual source in it..
Expand Down

0 comments on commit 9f7623d

Please sign in to comment.