I got an error "Type null is not assignable to type string | undefined" when I tried to call paddle.Checkout.updateCheckout({ discountId: null, items: [{ priceId: 'newPriceId', quantity: 1 }], });.
I expect the type of discountId to be string | null, as docs state
Steps to reproduce
Call paddle.Checkout.updateCheckout in .ts file with discountId: null
Get a ts error "Type null is not assignable to type string | undefined"
What did you expect to happen?
paddle.Checkout.updateCheckout({ discountId: null, items: [{ priceId: 'newPriceId', quantity: 1 }], }); works well without any errors
What happened?
I got an error "Type null is not assignable to type string | undefined" when I tried to call
paddle.Checkout.updateCheckout({ discountId: null, items: [{ priceId: 'newPriceId', quantity: 1 }], });
.I expect the type of discountId to be string | null, as docs state
Steps to reproduce
What did you expect to happen?
paddle.Checkout.updateCheckout({ discountId: null, items: [{ priceId: 'newPriceId', quantity: 1 }], });
works well without any errorsHow are you integrating?
React, TypeScript
Logs
No response