Skip to content

Commit

Permalink
Edit button preferences type to be more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencer Sablan committed May 1, 2024
1 parent c8fc82f commit c97f968
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/hosted-buttons/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ export type HostedButtonsInstance = {|
render: (string | HTMLElement) => Promise<void>,
|};

export type EligibleHostedButtons = "paypal" | "venmo" | "paylater";

export type HostedButtonPreferences = {|
buttonPreferences: $ReadOnlyArray<string>,
eligibleFundingMethods: $ReadOnlyArray<string>,
buttonPreferences: $ReadOnlyArray<EligibleHostedButtons & "default">,
eligibleFundingMethods: $ReadOnlyArray<EligibleHostedButtons>,
|};

export type HostedButtonDetailsParams =
Expand Down

0 comments on commit c97f968

Please sign in to comment.