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
It would be best to convert this type into an interface so that it can be extended as needed when using uniforms.
Our use case is that we have a custom bridge that implements additional custom methods. We then use this bridge (schema) by using the useForm hook within a field and calling the method within that component. Now, since the schema returned is of default type Bridge, this method does not exist in types and produces a type error. The current workaround is to either ignore the error or cast the type.
The text was updated successfully, but these errors were encountered:
I looked into it, and I don't think it'll cover your need - you won't be able to override this property anyway (TypeScript playground). Or maybe I don't see something?
It would be best to convert this type into an interface so that it can be extended as needed when using uniforms.
Our use case is that we have a custom bridge that implements additional custom methods. We then use this bridge (schema) by using the
useForm
hook within a field and calling the method within that component. Now, since theschema
returned is of default typeBridge
, this method does not exist in types and produces a type error. The current workaround is to either ignore the error or cast the type.The text was updated successfully, but these errors were encountered: