@types/css-font-loading-module
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -10,11 +10,2 @@ // Type definitions for CSS Font Loading Module Level 3 | ||
export interface FontFaceDescriptors { | ||
style?: string; | ||
weight?: string; | ||
stretch?: string; | ||
unicodeRange?: string; | ||
variant?: string; | ||
featureSettings?: string; | ||
} | ||
export interface FontFaceSetLoadEventInit extends EventInit { | ||
@@ -32,5 +23,5 @@ fontfaces?: FontFace[]; | ||
// events for when loading state changes | ||
onloading: ((this: FontFaceSet, event: FontFaceSetLoadEvent) => any) | null; | ||
onloadingdone: ((this: FontFaceSet, event: FontFaceSetLoadEvent) => any) | null; | ||
onloadingerror: ((this: FontFaceSet, event: FontFaceSetLoadEvent) => any) | null; | ||
onloading: ((this: FontFaceSet, event: Event) => any) | null; | ||
onloadingdone: ((this: FontFaceSet, event: Event) => any) | null; | ||
onloadingerror: ((this: FontFaceSet, event: Event) => any) | null; | ||
@@ -50,2 +41,4 @@ // EventTarget | ||
forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void; | ||
// async notification that font loading and layout operations are done | ||
@@ -59,4 +52,13 @@ readonly ready: Promise<FontFaceSet>; | ||
declare global { | ||
class FontFace { | ||
constructor(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors); | ||
interface FontFaceDescriptors { | ||
display?: string; | ||
featureSettings?: string; | ||
stretch?: string; | ||
style?: string; | ||
unicodeRange?: string; | ||
variant?: string; | ||
weight?: string; | ||
} | ||
interface FontFace { | ||
load(): Promise<FontFace>; | ||
@@ -77,7 +79,16 @@ | ||
class FontFaceSetLoadEvent extends Event { | ||
constructor(type: string, eventInitDict?: FontFaceSetLoadEventInit); | ||
readonly fontfaces: FontFace[]; | ||
var FontFace: { | ||
prototype: FontFace; | ||
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace; | ||
}; | ||
interface FontFaceSetLoadEvent extends Event { | ||
readonly fontfaces: ReadonlyArray<FontFace>; | ||
} | ||
var FontFaceSetLoadEvent: { | ||
prototype: FontFaceSetLoadEvent; | ||
new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent; | ||
}; | ||
interface Document { | ||
@@ -84,0 +95,0 @@ fonts: FontFaceSet; |
{ | ||
"name": "@types/css-font-loading-module", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "TypeScript definitions for CSS Font Loading Module Level 3", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/css-font-loading-module", | ||
"license": "MIT", | ||
@@ -22,4 +23,4 @@ "contributors": [ | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "392a94653f86a041775c17ae0e8670614cc1ccb8021b36689b24c641fd4f1508", | ||
"typeScriptVersion": "2.8" | ||
"typesPublisherContentHash": "0691edfb6eaab8d25e69a880413cb56b7dd97a9e7c084cd50541966503d4d507", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 31 Mar 2020 21:53:05 GMT | ||
* Last updated: Fri, 25 Jun 2021 18:01:16 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
6129
79
1