I get this tslint error, which I don't understand why. The interface does start with a capital letter.
29 col 11 error| interface name must start with a capitalized I (interface-name) [typescript/tslint]
S> 29 interface Props {
30 answerQuestion: (answerQuestion: AnswerQuestion) => void;
The interface-name rule requires that all interfaces being with the capital letter I. This is to distinguish interfaces from classes (since an interface is not a value, but a class is). In your case, you could correct your code by naming your interface IProps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With