1 00:00:00,240 --> 00:00:05,970 In this lecture, we're going to configure TypeScript Decorators are an experimental feature. 2 00:00:06,270 --> 00:00:10,860 If we want to use decorators, we need to configure TypeScript to enable them. 3 00:00:11,220 --> 00:00:15,150 We can configure TypeScript by creating a configuration file. 4 00:00:15,480 --> 00:00:17,610 This file can be created manually. 5 00:00:18,210 --> 00:00:24,540 Alternatively, the TypeScript package adds a command for creating a basic configuration file. 6 00:00:24,880 --> 00:00:32,220 Let's give the package a try and the command line run the following command NPCs TSC in it. 7 00:00:34,860 --> 00:00:40,980 After running this command, TypeScript will have created a file called T-s Config Dot JSON. 8 00:00:41,250 --> 00:00:42,540 Let's open this file. 9 00:00:45,130 --> 00:00:50,650 Out of the box, TypeScript will recommend dozens of settings for configuring the library. 10 00:00:50,980 --> 00:00:53,620 Luckily, we won't have to configure them all. 11 00:00:53,920 --> 00:00:58,840 The default settings will work for most situations when we switch to Angular. 12 00:00:58,930 --> 00:01:00,950 It'll configure this file for us. 13 00:01:01,270 --> 00:01:07,010 It's not essential to learn every option inside the compiler options object. 14 00:01:07,060 --> 00:01:09,190 We're going to remove every option. 15 00:01:11,810 --> 00:01:14,480 They're not necessary for what we're trying to do. 16 00:01:15,020 --> 00:01:18,860 The option we care about is called experimental decorators. 17 00:01:19,160 --> 00:01:22,640 Let's have this option to the compiler options object. 18 00:01:22,940 --> 00:01:24,710 Its value will be true. 19 00:01:27,440 --> 00:01:32,330 By setting this option too true, we'll be able to write decorators in our files. 20 00:01:32,630 --> 00:01:33,230 That's it. 21 00:01:33,410 --> 00:01:37,940 We've enabled decorators if you're interested in learning the other options. 22 00:01:38,120 --> 00:01:41,240 Check out the link in the resource section of this lecture. 23 00:01:43,730 --> 00:01:50,000 This page will document every option in detail, as you can see, TypeScript is very flexible. 24 00:01:50,300 --> 00:01:53,810 In the next lecture, we're going to begin writing decorators. 25 00:01:54,080 --> 00:01:55,100 I'll see you there.