baseweb icon indicating copy to clipboard operation
baseweb copied to clipboard

typescript: no types provided for function signatures of overridden components?

Open bstro opened this issue 4 years ago • 2 comments

When I override a component implementation with Baseweb, it looks like there's no function signature provided on the type. For instance, if I were to attempt to override the Select component within the TimePicker, I would experience the following;

image

I would expect that I would be provided with a type signature so that I have some idea of the data the component will receive as well as the handlers (and their signatures) that I would need to support.

Is this a bug, or is this level of typescript integration currently not supported?

bstro avatar Aug 12 '21 22:08 bstro

We don't use typescript at Uber, so we provide a best effort for the community. We're always open to contributions to update our typing and type system.

williamernest avatar Aug 13 '21 15:08 williamernest

Hi @williamernest

I would like to contribute in the type system. Let me know from where can i start?

keshav-bohr avatar Apr 23 '22 19:04 keshav-bohr