1public getValue(): string {
2 return this.inputNode.value;
3 }
4
5 public get inputNode(): HTMLSelectElement {
6 return this.node.getElementsByTagName("select")[1];
7 }
8}
11. Add tsconfig.json file to project
22. Integrate with a build tool
33. Change all .js files to .ts files
44. Check for any errors