TypeScript Version: 2.8.0-dev.20180208
Search Terms: focusin focusout
Code
document.addEventListener('focusin', (e:FocusEvent) => {});
Expected behavior:
Compiles in strict mode
Actual behavior:
focusin.ts(1,38): error TS2345: Argument of type '(e: FocusEvent) => void' is not assignable to parameter of type 'EventListenerOrEventListenerObject'.
Type '(e: FocusEvent) => void' is not assignable to type 'EventListenerObject'.
Property 'handleEvent' is missing in type '(e: FocusEvent) => void'.
TypeScript Version: 2.8.0-dev.20180208
Search Terms: focusin focusout
Code
Expected behavior:
Compiles in strict mode
Actual behavior: