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
Currently, TypeScript does not support inference of object properties based on a "type" property that can contain a component type. This can be useful in cases where you want to infer the properties of a component based on its "type" property, regardless of whether it is a React component or another type of component.
The example section here is not well-formed. What is out doing there? What is someone who doesn't do React supposed to take away from this? What happens if the React types change and your sample doesn't work? What's the simplest version of this that anyone can understand?
Suggestion
π Search Terms
out parameters, infer out, auto casting
β Viability Checklist
My suggestion meets these guidelines:
β Suggestion
Currently, TypeScript does not support inference of object properties based on a "type" property that can contain a component type. This can be useful in cases where you want to infer the properties of a component based on its "type" property, regardless of whether it is a React component or another type of component.
π Motivating Example
π» Use Cases
The text was updated successfully, but these errors were encountered: