Skip to content

Commit b0d3c21

Browse files
dimitriBouteilleDimitri BOUTEILLEsponglord
authored
TS : argument options in ICore:createFromAction is optional (#3053)
* prop options in ICore:createFromAction is optional * Set options in ICore:createFromAction to be optional --------- Co-authored-by: Dimitri BOUTEILLE <dimitri.bouteille@reflet-digital.com> Co-authored-by: sponglord <nicholas.spong@adyen.com>
1 parent be64270 commit b0d3c21

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/early-rats-type.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@adyen/adyen-web": patch
3+
---
4+
5+
Set `options` in ICore:createFromAction to be optional

packages/lib/src/core/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface ICore {
3131
submitDetails(details: AdditionalDetailsData['data']): void;
3232
getCorePropsForComponent(): any;
3333
getComponent(txVariant: string): NewableComponent | undefined;
34-
createFromAction(action: PaymentAction, options: any): UIElement;
34+
createFromAction(action: PaymentAction, options?: any): UIElement;
3535
storeElementReference(element: UIElement): void;
3636
options: CoreConfiguration;
3737
paymentMethodsResponse: PaymentMethods;

0 commit comments

Comments
 (0)