diff --git a/.changeset/popular-ads-join.md b/.changeset/popular-ads-join.md new file mode 100644 index 0000000000..9864ca6547 --- /dev/null +++ b/.changeset/popular-ads-join.md @@ -0,0 +1,5 @@ +--- +'@adyen/adyen-web': patch +--- + +Updated types in the onChangeData type diff --git a/packages/lib/src/core/types.ts b/packages/lib/src/core/types.ts index 8d333284c0..e4f22fb31e 100644 --- a/packages/lib/src/core/types.ts +++ b/packages/lib/src/core/types.ts @@ -86,9 +86,11 @@ export type OnChangeData = { [fieldKey: string]: { isValid: boolean; errorMessage: string; - errorI18n: string; - error: string; - rootNode: HTMLElement; + error?: string; + // These are only ever populated for the Card component + errorI18n?: string; + rootNode?: HTMLElement; + detectedBrands?: string[]; }; }; };