Configuring TypeScript
For your convenience, I have configured TypeScript in our repository. You can check it under src/Chapter 11/Example 1 in the code files.
There are a few things I want you to understand.
TypeScript comes with its own configuration file, called tsconfig.json. In this file, you will find multiple configuration properties that control how strict the TypeScript compiler is. You can find a detailed list of the properties and explanations in the official documentation at https://www.typescriptlang.org/docs/handbook/compiler-options.html.
Among the options, you can find outDir. This specifies where the compiler output should be saved. In our repository, it is set to "outDir": "build/dist". Our application, from now on, will ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access