Skip to content

Commit

Permalink
Merge pull request #99 from andreisocaciu/main
Browse files Browse the repository at this point in the history
Update type for SetCheckoutPricing
  • Loading branch information
douglasmiller committed Nov 20, 2020
2 parents 6ea1bed + 3d06fcc commit 6260103
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 @@ -98,7 +98,7 @@ export type UseCheckoutPricingState = {
loading: boolean;
};

export type SetCheckoutPricing = (input: UseCheckoutPricingInput) => void;
export type SetCheckoutPricing = (input: UseCheckoutPricingInput | ((prevState: UseCheckoutPricingInput) => UseCheckoutPricingInput)) => void;

export type UseCheckoutPricingReturn = [UseCheckoutPricingState, SetCheckoutPricing];

Expand Down

0 comments on commit 6260103

Please sign in to comment.