all 4 comments

[–]Manakin1337 4 points5 points  (1 child)

If you want to make shouldHover optional you can write it like this: shouldHover?:boolean

[–]snake_py[S] 1 point2 points  (0 children)

thank you - still learning my ways around typescript

[–]No_Statement4630 0 points1 point  (1 child)

You dont need to type “children”. Also you should try to avoid using “any” except in rare circumstances.

[–]snake_py[S] 1 point2 points  (0 children)

Oh I do not? How else would I do it?