2. Declaration Files
Activity 2.01: Building a Heat Map Declaration File
Solution:
In this activity, we'll be building a TypeScript application named heat map log system
that will track the baseball pitch data and ensure the integrity of the data. Perform the following steps to implement this activity:
- Visit the following GitHub repository at https://packt.link/dqDPk and download the activity project containing the specs and configuration elements.
- Open the Visual Studio Code editor and then open the terminal.
- Change to the
activity-starter
directory in the terminal or command prompt by writing the following command:cd activity-starter
- Run the following command to install the dependencies:
npm install
You will now see the following files in the
activity-starter
directory: - Open the
HeatMapTypes.d.ts
declaration file in thetypes/
directory, define a module calledHeatMapTypes
, and export the interface namedPitcher...