Hello!
TypeScript Version: 2.1.6
Code
document.querySelector(`#id`).focus(); // Property 'focus' does not exist on type 'Element'
// but this work fine..
const a = <HTMLElement>document.querySelector(`[${this.horizonatalItemAttrName}]`);
a.focus();
Expected behavior: Focus exist on type 'Element'
Actual behavior: Property 'focus' does not exist on type 'Element'
Hello!
TypeScript Version: 2.1.6
Code
Expected behavior: Focus exist on type 'Element'
Actual behavior: Property 'focus' does not exist on type 'Element'