Open thuonghd3 opened 3 years ago
👍
onShippingChange
types are also missing!
I resolved it, create file paypal_extends.d.ts
import { PayPalButtonProps } from "react-paypal-button-v2/dist/index";
declare module "react-paypal-button-v2/dist/index" {
interface PayPalButtonProps {
onCancel?: Function,
onClick?: Function,
}
}
In the file tsconfig.json
Add a new line:
"include": [
...
"lib/view/components/paypal/paypal_extends.d.ts",
...
]
To Do First
Software Package Version:
Describe the bug
To Reproduce
Expected behavior
Screenshots
Desktop (please complete the following information):
Additional context