Typescript | Infere Types from PropTypes
Infer Types from PropTypes
- function arguments (eg.
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void vs.
- not sure how to deal with eg.
interface IDeleteButtonProps extends IOtherInterface with PropTypes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters