From cfaacdb70869bd995b5e3120decf2d801aea8bef Mon Sep 17 00:00:00 2001 From: -l Date: Fri, 29 Sep 2023 14:56:26 +0200 Subject: [PATCH] fix(PaymentCard): correctly export type for getCardData function --- .../src/extensions/payment-card/PaymentCard.d.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/packages/dnb-eufemia/src/extensions/payment-card/PaymentCard.d.ts b/packages/dnb-eufemia/src/extensions/payment-card/PaymentCard.d.ts index 79ab4e0cd86..9fa04164971 100644 --- a/packages/dnb-eufemia/src/extensions/payment-card/PaymentCard.d.ts +++ b/packages/dnb-eufemia/src/extensions/payment-card/PaymentCard.d.ts @@ -58,6 +58,18 @@ export interface PaymentCardRawData { productType: ProductType; bankAxept: BankAxeptType; } + +export interface CardDesign { + name: string; + cardStyle: string; + bankLogo: any; + visa: any; + mastercard: any; + bankAxept: any; + saga: any; + privateBanking: any; +} + export type PaymentCardChildren = | string | React.ReactNode @@ -109,6 +121,8 @@ export default class PaymentCard extends React.Component< static defaultProps: object; render(): JSX.Element; } -export const getCardData = (product_code: string) => PaymentCardRawData; +export const getCardData: ( + product_code: string +) => Omit & { cardDesign: CardDesign }; export const formatCardNumber = (cardNumber: string, digits?: number) => string;