mirror of
https://github.com/jlengrand/adyen-web.git
synced 2026-03-10 08:01:22 +00:00
Adjusting paymentMethodConfiguration type to support txVariants not mapped internally (#2349)
* fix: added type to paymentmethods configuration * fix: changeset * fix: improved type
This commit is contained in:
committed by
GitHub
parent
a95b4f1208
commit
4f3fedff5f
5
.changeset/good-boxes-taste.md
Normal file
5
.changeset/good-boxes-taste.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@adyen/adyen-web': patch
|
||||
---
|
||||
|
||||
Fix Typescript definition for paymentMethodsConfiguration, allowing usage of Tx variants that are not defined in the codebase
|
||||
@@ -3,7 +3,7 @@ import { PaymentMethods, PaymentMethodOptions, PaymentActionsType, PaymentAmount
|
||||
import { AnalyticsOptions } from './Analytics/types';
|
||||
import { PaymentMethodsResponse } from './ProcessResponse/PaymentMethodsResponse/types';
|
||||
import { RiskModuleOptions } from './RiskModule/RiskModule';
|
||||
import { ActionHandledReturnObject, OnPaymentCompletedData, PaymentData } from '../components/types';
|
||||
import { ActionHandledReturnObject, OnPaymentCompletedData, PaymentData, UIElementProps } from '../components/types';
|
||||
import UIElement from '../components/UIElement';
|
||||
import AdyenCheckoutError from './Errors/AdyenCheckoutError';
|
||||
import { GiftCardElementData } from '../components/Giftcard/types';
|
||||
@@ -172,4 +172,7 @@ export type PaymentMethodsConfiguration =
|
||||
}
|
||||
| {
|
||||
[key in PaymentActionsType]?: any;
|
||||
}
|
||||
| {
|
||||
[key: string]: UIElementProps;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user