Skip to content

Commit e6153e8

Browse files
authored
ApplePaySession is not always available in Window (#2836)
* ApplePaySession is not always available in WIndow * Add changeset
1 parent cc7c222 commit e6153e8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/swift-emus-complain.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@adyen/adyen-web': patch
3+
---
4+
5+
Change ApplePaySession type to optional in window interface

packages/lib/src/components/ApplePay/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { AddressData } from '../../types/global-types';
33

44
declare global {
55
interface Window {
6-
ApplePaySession: ApplePaySession;
6+
ApplePaySession?: ApplePaySession;
77
}
88
}
99

0 commit comments

Comments
 (0)