Open jvandermey opened 1 year ago
https://github.com/droneshire/dealanalyzer/blob/42c14590838684bfc521270ac0ea08dae8c975ba/src/components/DealInput.tsx#L21
FYI, you can define this type with a builtin generic as Record<string, string>. That being said, if it were me (it's not) I'd probably enumerate all of the field names explicitly to get better type checking and editor auto-complete support.
Record<string, string>
https://github.com/droneshire/dealanalyzer/blob/42c14590838684bfc521270ac0ea08dae8c975ba/src/components/DealInput.tsx#L21
FYI, you can define this type with a builtin generic as
Record<string, string>
. That being said, if it were me (it's not) I'd probably enumerate all of the field names explicitly to get better type checking and editor auto-complete support.