Deep react component typing
hey ts nerds, can someone help me out with this ?
When using this typing, <StyledButton.Sbutton /> works and the editor autocompletes and reads it well, but when i try <StyledButton.SButton.Arrow /> i get not help it's not working (with both methods, the one used or the one commented
the whole
alone isn't working as i wanted it, i've seen it done like that though (in the mantine
.d.ts
files on their input component)
Edit: if i declare it like this it works
This is probably due to the fact that when i install this package in another project it doesn't get styled-components typing somehow
Edit 2 : figured out the "solution", add the styling package as a peer depency so the used of the package has to install it, i don't know if better can be done though0 Replies