- Clone the repo
npm install
npm run check
TypeScript errors:
- This component passes a function to
<Parent>
'sname
prop, and also passes ananimal
prop <Parent>
spreads its props to<Child>
:<Child>
expects astring
forname
, and does not have ananimal
prop:
Both the wrongly-typed name
and the extra prop animal
should throw type errors.
No errors