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
Foo.tsx
TypeScript error in Foo.tsx(13,10):
Property 'children' is missing in type '{}' but required in type '{ [x: string]: any; children: any; disabled?: any; inputRef?: any; label?: any; value?: any; }'. TS2741
The typing that I see for the SubmitField from material is like so:
If I make all the parameters optional on the first example (by editing the definition file) then my error goes away. I'm not sure how these definition files are built, so I'm not sure where these changes could be made. I guess there's typing missing in the material SubmitField component...
The text was updated successfully, but these errors were encountered:
Hi @chmac. Indeed, currently inferred types are... Not suitable to work with. We'll try to do as much as possible now, but more general support will come with v3.
OK. Will wait to see how it works in v3. Right now I worked around the issue by just replacing the <SubmitField with a simple <Button. I don't have the whole lerna setup running for uniforms so won't be able to do much in terms of useful PRs.
The typing that I see for the
SubmitField
from material is like so:If I make all the parameters optional on the first example (by editing the definition file) then my error goes away. I'm not sure how these definition files are built, so I'm not sure where these changes could be made. I guess there's typing missing in the material
SubmitField
component...The text was updated successfully, but these errors were encountered: