Improve prop default factory typings
Is there a way to improve that typing for the DefaultFactory
type? The callback type currently receives Data
which is just Record<string, any>
when it is actually all the props on the component.
These props are already inferred elsewhere, but might not be possible in the current context so I'm just enquiring.
What problem does this feature solve?
You would get typehints of the available props in the default factory.