Skip to content

Commit

Permalink
Update css-font-loading-module for TS 5.7
Browse files Browse the repository at this point in the history
Required by the TS 5.7 PR: microsoft/TypeScript#60061
  • Loading branch information
sandersn committed Sep 27, 2024
1 parent 4c29a3d commit 5683356
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions types/css-font-loading-module/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ declare global {

interface FontFaceSet extends Set<FontFace>, EventTarget {
// events for when loading state changes
onloading: ((this: FontFaceSet, event: Event) => any) | null;
onloadingdone: ((this: FontFaceSet, event: Event) => any) | null;
onloadingerror: ((this: FontFaceSet, event: Event) => any) | null;
onloading: ((this: FontFaceSet, event: FontFaceSetLoadEvent) => any) | null;
onloadingdone: ((this: FontFaceSet, event: FontFaceSetLoadEvent) => any) | null;
onloadingerror: ((this: FontFaceSet, event: FontFaceSetLoadEvent) => any) | null;

// EventTarget
addEventListener<K extends keyof FontFaceSetCallbackMap>(
Expand Down
2 changes: 1 addition & 1 deletion types/css-font-loading-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"projects": [
"https://drafts.csswg.org/css-font-loading/"
],
"minimumTypeScriptVersion": "5.0",
"minimumTypeScriptVersion": "5.7",
"devDependencies": {
"@types/css-font-loading-module": "workspace:."
},
Expand Down

0 comments on commit 5683356

Please sign in to comment.