tellerhq / teller-connect-react

React bindings for Teller Connect
6 stars 6 forks source link

Improve type declarations #3

Closed andycodesstuff closed 1 year ago

andycodesstuff commented 1 year ago

A rework of the existing type declarations to fix various errors:

  1. The previous type declarations used field: null | ... instead of field?: ... to define optional fields
  2. Using React.HTMLProps<HTMLButtonElement> on the TellerConnect component to provide better props IntelliSense
  3. Rename onLoad method to onInit to match docs
  4. Remove unnecessary | string and [key: string]: any from types
  5. Remove unnecessary types