I really loved Typescript, typescript give me the power of finding
the potential bug while I'm writing the JavaScript code.
But what if you can get the power
of typescript without using the typescript?
That means just writing the JavaScript code
and you will be able to use the typescript power.
Isn't it amazing
So welcome to bitfumes I'm your host Sarthak,
and this is an amazing video about TypeScript and JavaScript thing.
So if you're new to this video or this channel just hit subscribe button
and like this video so that this video
can reach to other people and that will give me happiness.
Okay, so I'm talking about the using the TypeScript in JavaScript
without using typescript, what the hell it is.
So check out this amazing article proposed by Daniel written on the Microsoft
website, and it's a proposal for the type syntax in Java script.
Yes. Inside of the JavaScript.
Now, what what is the problem with the typescript we have now?
The JavaScript code is
we write the JavaScript code for the browser.
Now, browser, only understand the JavaScript code.
So when you're writing the TypeScript code, you need to convert
all the TypeScript code into the simple JavaScript code.
Now that JavaScript code you can use and run on the browser.
That's cool.
No issue, but this conversion of the TypeScript code
into JavaScript code is not always happy thing.
So this is a proposal which actually ditch the typescript, which actually
remove the use of TypeScript and having all the power of typing system
inside the JavaScript But how we can able to do that thing.
So as I said, we want to convert the typescript code into JavaScript,
but when we write any code, the comment are always skip
by the compiler or when we actually create the production build.
So what if we can write the typing system inside the comment
and then IDE or like a VS code
or any any IDE you're using can detect that.
Okay, This command is actually for the type safety thing.
Then that is the real power.
So see, inside this article, they have given
this kind of amazing proposal in this proposal.
It says that you can use this types inside of the comment.
By doing that, you will be able to get rid of this kind of code,
which actually you need to convert into JavaScript.
But this code you don't need to convert anything because it's written in basic.
JavaScript and the type power is actually on the comment.
So when you create a production build all the comment will be removed
and you just landed with the pure JavaScript thing.
So this proposal is actually amazing and it has actually explained
how the TypeScript and the JavaScript works.
So see, in the TypeScript code you have a TypeScript compiler,
you use TypeScript Babel thing.
Then you convert it into JavaScript.
But in the proposed system, you just have the JavaScript with the type
and boom, everything can be able to run on the browser.
So once again, this is just a proposal, not a real thing,
but if this is more, you can say more people want this thing.
They will be able to think about this in the future.
So if you really want to read this article, why the link in the description?
If you like this video, hit thumbs up you don't like,
just comment below what you didn't like in this video.
I will try to improve it and obviously comment
your favorite IDE which is your favorite.
IDE just comment below and let's have a chat on that.
So we'll meet in the next video till then. Goodbye.