DEV Community

Discussion on: Use multiple interfaces/types as Props in react with typescript.

Collapse
 
karlkras profile image
Karl Krasnowsky

Something I've been wondering (and will try shortly) , if I had a function that took a ICustomComponentProps as an argument, could I pass an instance of CustomComponentB (if using the extends method) to it and (if wanted) cast it to a INewComponentPropsB ?