diff --git a/src/types/types-external.ts b/src/types/types-external.ts index 098e7adc..d1ef6482 100644 --- a/src/types/types-external.ts +++ b/src/types/types-external.ts @@ -252,6 +252,11 @@ export interface IProduceWithPatches { ): Promise> } +/** + * The type for `recipe function` + */ +export type Producer = (draft: Draft) => ValidRecipeReturnType> | Promise>> + // Fixes #507: bili doesn't export the types of this file if there is no actual source in it.. // hopefully it get's tree-shaken away for everyone :) export function never_used() {}