The-TypeScript-Workshop icon indicating copy to clipboard operation
The-TypeScript-Workshop copied to clipboard

Results 4 The-TypeScript-Workshop issues
Sort by recently updated
recently updated
newest added

Having a class Teacher without an attribute "token" outlines an error in the IDE when consoling out a teacher["token"]. ![](https://i.imgur.com/Fw0mGjH.png) The compilation is successful when the "token: any" attribute is...

Reference to: Activity 2.01: Building a Heat Map Declaration File The book description does not show how to compile files. If we use `tsc` standart commands, it has an error...

The supporting text for this example reads as follows: "In the preceding snippet, we build a product object and then pass it to our class's **makeProduct** function. We then console...

Executing `npx ts-node Exercise01.ts` as instructed in the text will fail without an explicit return type. VS Code will flag it as well.