migtools / mig-ui

Openshift Migration UI
Apache License 2.0
10 stars 31 forks source link

Improve formik typescript support #820

Open ibolton336 opened 4 years ago

ibolton336 commented 4 years ago

Add interfaces for all form values & actually define the types of the values that are being mapped to the interface.

@mturley pointed out that we can use typescripts "Pick" to extend from parent interfaces to only extend the types we need in a child component. Still need to get up to speed on this but it seems like a good alternative to following a chain of extends around everywhere.

ibolton336 commented 4 years ago

https://github.com/konveyor/mig-ui/pull/802#discussion_r411728879