Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@types/css-font-loading-module

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/css-font-loading-module - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

45

css-font-loading-module/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc