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
However, Astro throws type errors if pass a type like this to a component with spread syntax, because of the slot property. So the correct typing would be:
Sure, I can collect in a fork. The main other thing I've noticed is typecasting Astro.props, I believe this doesn't enforce typings when passing props to astro components. I.e. in the Content widget:
importtype{Content}from'~/types';exporttypeProps=Content// astro uses a type/interface of this name to type its propsconst{// ...props...}=Astro.props;
With your PR and with some adjustments that I made based on the comment you put in the PR about missing types, AstroWind now passes the astro check validation
HTMLAttributes takes a string as its generic, currently it's being passed an undefined type
a
.However, Astro throws type errors if pass a type like this to a component with spread syntax, because of the
slot
property. So the correct typing would be:The text was updated successfully, but these errors were encountered: