Cretezy / braintree-web-drop-in-react

React component for Braintree Web Drop-In (v3)
MIT License
71 stars 22 forks source link

Type definitions for the import from `@types/braintree-web-drop-in` not available #313

Open adrian-delgado opened 3 years ago

adrian-delgado commented 3 years ago

This package doesn't expose the types from @types/braintree-web-drop-in, so for example the prop onInstance if of type (instance: any) => void.

This should be fixed easily by making @types/braintree-web-drop-in a normal dependency (instead of a devDependency). (https://stackoverflow.com/a/46011417/12412337 provides more info about this).