DEV Community

Discussion on: The Trouble with TypeScript

Collapse
 
ryansolid profile image
Ryan Carniato

I linked an example in the Material UI docs but I also hit this a couple times in Solid with JSX type casting. Like look at createStyles in this documentation TypeScript with Material UI. This function call is necessary to make TypeScript work nicely even though it is essentially a no-op and pure runtime overhead.