How to get or access the properties and methods of section HTML element tag without errors in TypeScript?