install ts code example
Example 1: install typescript
npm install -g typescript
Example 2: how to install typescript in windows 10
npm install -g typescript
Example 3: typescript
interface LabelledValue {
label: string;
}
function printLabel(labelledObj: LabelledValue) {
console.log(labelledObj.label);
}
let myObj = {size: 10, label: "Size 10 Object"};
printLabel(myObj);