You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the types it doesn't work because Image component have placeholder prop, which make Typescript complains about: Type 'string' is not assignable to type '"blur" | "empty" | undefined'.ts(2322) types.d.ts(16, 5): The expected type comes from property 'placeholder' which is declared here on type 'IntrinsicAttributes & ImageProps'. Similar problem comes up when using<div> inside an <li> element and so one. Is there some way to make Typescript happy?
The text was updated successfully, but these errors were encountered:
Hi, I'm wondering if there's some typing I could use when overriding HTML elements like this:
With the types it doesn't work because
Image
component haveplaceholder
prop, which make Typescript complains about:Type 'string' is not assignable to type '"blur" | "empty" | undefined'.ts(2322) types.d.ts(16, 5): The expected type comes from property 'placeholder' which is declared here on type 'IntrinsicAttributes & ImageProps'
. Similar problem comes up when using<div>
inside an<li>
element and so one. Is there some way to make Typescript happy?The text was updated successfully, but these errors were encountered: