Microsoft/TypeScript
[type bug] fontfaces property is missing from loadingdone event object
オープン
#51,885 opened on 2022/12/14
BugDomain: lib.d.tsHelp Wanted
Repository metrics
- Stars
- (108,860 個のスター)
- PR merge metrics
- (PR metrics pending)
説明
Configuration Check
My compilation target is ES2015 and my lib is ES2022 & `DOM.
Missing / Incorrect Definition
Request to replace the event type of onloadingdone handler from Event to FontFaceSetLoadEvent, which has been defined in the same module.
Sample Code
interface FontFaceSet extends EventTarget {
- onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
+ onloadingdone: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
}
Documentation Link
https://w3c.github.io/csswg-drafts/css-font-loading/#FontFaceSet-events