Home > Enterprise >  Binding element 'Component' implicitly has an 'any' type
Binding element 'Component' implicitly has an 'any' type

Time:01-28

[![enter image description here][1]][1]

What can i do if i don't want to add type of the props to this? [1]: https://i.stack.imgur.com/UdxV8.jpg

CodePudding user response:

21

It is a check of the type script compiler. You can either remove the check or specify explicitly the any type in the declaration (answer from @Thyagu). In the tsconfig.json file, you could change the line

"noImplicitAny": false, to

"noImplicitAny": true,

CodePudding user response:

noImplicitAny will be by default true if strict mode is true. I would recommend to keep it true unless your code will soon become crap because not every dev is resposible enough to keep this in mind.

  • Related