Skip to content

Commit e6a3ca2

Browse files
Fix: Eligible Methods Options (#828)
* add logs for eligible methods * fix findEligibleMethods options type * chore: add changeset * Revert "add logs for eligible methods" This reverts commit 7ccc697. --------- Co-authored-by: Drew Liu <drewliu96@gmail.com>
1 parent d4f4fc5 commit e6a3ca2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/dull-tools-notice.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@paypal/paypal-js": patch
3+
---
4+
5+
Fixes the SDK instance's findEligibleMethods options typing, marks the argument optional.

packages/paypal-js/types/v6/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export interface BaseInstance {
180180
* ```
181181
*/
182182
findEligibleMethods: (
183-
findEligibleMethodsOptions: FindEligibleMethodsOptions,
183+
findEligibleMethodsOptions?: FindEligibleMethodsOptions,
184184
) => Promise<EligiblePaymentMethodsOutput>;
185185
/**
186186
* Updates the locale for the SDK instance.

0 commit comments

Comments
 (0)