google-pay / react-native-make-payment

React Native library for making native payments
Apache License 2.0
19 stars 7 forks source link

How To Work with Typescript #22

Open harrymuliawan03 opened 6 months ago

rahimlisarkhan commented 2 months ago

1 . // In src/types/react-native-make-payment.d.ts declare module '@google/react-native-make-payment' { export function canMakePayment(): Promise; export function makePaymentRequest(details: any): Promise; export function PaymentRequest(): any; export function GooglePayButton(props: any): any; export function GooglePayButtonConstants(props: any): any; }

2 . "include": ["src/types", "app/*/"],