OOP with TypeScript: Tweaking tsconfig File

TypeScript
Transcript

English (Auto-generated)

read this, we are getting the red lines, you know, in the whole class because you know when I have the mouse it tells that property age has no initialize er and it is not definitely assigned to in the constructor. So there are things we still need to talk about, so it's gonna take a little time. So how we can remove these red lines for now, why we got the red lines, because we enable the tts conflict that Jason file and we initiated the file. So the thing is we can do some tweaks in this file to make this normal. So what we need to do is um we just need to open the T. S. Conflict file like I did and after that, you know, there are many things you just need to go down and you need to read this one district True, strict true means, enable all the strict type checking options. So absolutely everything here. I mean all these things are ultimately true, but you just directly can go to the certain option. Um here is strict property initialization because we don't want the property initialization. So instead of making it through, we can make it false false and now save it. Now go there and you are going to have this clear now now it is fine and we're not having any problem any error but it's working. So absolutely, we need to, you know, we need to follow the strict mode and we need to initialize the properties but we're going to talk about that once we learn more about that. So till then stay tuned.
117 Views 0 Likes 0 Comments

Let's make some tweaks to that tsconfig file we set up in the previous Cast.

Comment
Leave a comment (supports markdown format)