benmneb / mui-image

⚛ React component to display images as per the Material Design guidelines. For apps using Material-UI v5.
https://mui-image.surge.sh
ISC License
50 stars 14 forks source link

Many types are incorrectly set as `any` #19

Closed benmneb closed 1 year ago

benmneb commented 2 years ago

It would appear that all the types for this package https://www.npmjs.com/package/@types/mui-image written as React.CSSProperties['whatever it is'] dont actually work. They just come through as any.

StackBlitz example.

Anyone know how to fix this? I was trying to avoid manually copying and pasting them all in.

n3m commented 1 year ago

image

Working just fine for me, BUT, I have...

devDependency: "@types/mui-image": "^1.0.1",

...in my package.json, perhaps that's whats missing in your StackBlitz?

benmneb commented 1 year ago

thanks for commenting! i have that package in the blitz, so i dont know why its not working there (or in codesandbox). but i just made a local project and everything is fine there, so i guess its a blitz/sandbox thing. the same project in vscode.dev doesnt show the typescript errors either 🤷 thanks again