In this lecture, we're going to configure TypeScript Decorators are an experimental feature.
If we want to use decorators, we need to configure TypeScript to enable them.
We can configure TypeScript by creating a configuration file.
This file can be created manually.
Alternatively, the TypeScript package adds a command for creating a basic configuration file.
Let's give the package a try and the command line run the following command NPCs TSC in it.
After running this command, TypeScript will have created a file called T-s Config Dot JSON.
Let's open this file.
Out of the box, TypeScript will recommend dozens of settings for configuring the library.
Luckily, we won't have to configure them all.
The default settings will work for most situations when we switch to Angular.
It'll configure this file for us.
It's not essential to learn every option inside the compiler options object.
We're going to remove every option.
They're not necessary for what we're trying to do.
The option we care about is called experimental decorators.
Let's have this option to the compiler options object.
Its value will be true.
By setting this option too true, we'll be able to write decorators in our files.
That's it.
We've enabled decorators if you're interested in learning the other options.
Check out the link in the resource section of this lecture.
This page will document every option in detail, as you can see, TypeScript is very flexible.
In the next lecture, we're going to begin writing decorators.
I'll see you there.