Question:Consider the following components:
Basic.tsx) type to equal whatever type is passed into it in
onPropertySelectin Basic should know the type to use is
(property: BasicPropertyDetails<ExtendedPropertyDetails>) => void(based on the value in
Note: The type of
onPropertySelectwill have the same subtype as
As of now I cannot get the above to work and the implementation (or the return tsx) in Extended throws an error for types not matching.
Extended.tsx, pass type
If you have better answer, please add a comment about this, thank you!