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
This bug is superspecific and I have no idea why it happens, but in this case:
myForm=form<{name: string}>({name: form('')});
If I use myForm in the template, it's inferred in the IDE as WritableForm<string>, though in typescript and in build it's correctly inferred as WritableForm<{name: string}>.
There is no runtime issues here, it's purely a DX issue.
Weirdly, we need both the explicit type and the form('') usage for this to reproduce.
The text was updated successfully, but these errors were encountered:
This bug is superspecific and I have no idea why it happens, but in this case:
If I use
myForm
in the template, it's inferred in the IDE asWritableForm<string>
, though in typescript and in build it's correctly inferred asWritableForm<{name: string}>
.There is no runtime issues here, it's purely a DX issue.
Weirdly, we need both the explicit type and the
form('')
usage for this to reproduce.The text was updated successfully, but these errors were encountered: