Skip to content

focusin, focusout events missing from DocumentEventMap/HTMLElementEventMap #21822

@yseymour

Description

@yseymour

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'.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueHelp WantedYou can do this

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions