Outdated WHATWG DOM Event interface and init #17974
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Fixed
A PR has been merged for this issue
Help Wanted
You can do this
Milestone
TypeScript Version: 2.4.0 / nightly (2.5.0-dev.201xxxxx)
Code
Expected behavior:
Utilizing the 'composed' property should work. As per the WHATWG Living Standard the 'scoped' and 'deepPath' properties of an Event have been replaced with 'composed' and 'composedPath' respectively (see https://dom.spec.whatwg.org/)
Actual behavior:
Argument of type '{ detail: { term: string; }; bubbles: true; composed: boolean; }' is not assignable to parameter of type 'CustomEventInit'.
Object literal may only specify known properties, and 'composed' does not exist in type 'CustomEventInit'.
The text was updated successfully, but these errors were encountered: