Byteclaw / visage

Visage design system
https://visage.design
MIT License
12 stars 3 forks source link

[Select] - better generic typings #657

Open michalkvasnicak opened 3 years ago

michalkvasnicak commented 3 years ago

There is a problem that optionToString and valueToString are always any even if we provide option types.

<Select<{ value: string, label: string}> optionToString={o => /* o is any */} />

Also provide tsdoc for options so we know where and when each handler is used.