Byteclaw/visage

[Select] - better generic typings

Opened this issue · 0 comments

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.