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
Don't get me wrong, I understand why the type is generated as-is, I'm just wondering if that's what we want as we can't use form?.invalid (which would be convenient) 🤔
The type is correct, because it can either be shape X or shape Y, the combined type you suggest doesn't exist like this, you can't have both set at the time which the type suggests. That said, it would be nice if we somehow could make this work by enhancing the shape so that all properties are accessible while leaving the type correctly. In this example it would be
I have the following login page:
With the attached form action:
I have the feeling this is correctly done, however the typing of form is "wrong":
Wrong in a sense that I can't properly use
form?.invalid
in my svelte page without having a TS error:Shouldn't the type rather be:
Don't get me wrong, I understand why the type is generated as-is, I'm just wondering if that's what we want as we can't use
form?.invalid
(which would be convenient) 🤔Originally posted by @binajmen in #6820
The text was updated successfully, but these errors were encountered: