1.6.38 • Published 5 months ago
@types/webfontloader v1.6.38
Installation
npm install --save @types/webfontloader
Summary
This package contains type definitions for typekit-webfontloader (https://github.com/typekit/webfontloader).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webfontloader.
index.d.ts
// Type definitions for typekit-webfontloader 1.6.28
// Project: https://github.com/typekit/webfontloader
// Definitions by: SECT <https://github.com/sectsect>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = WebFont;
export as namespace WebFont;
declare namespace WebFont {
export function load(config:WebFont.Config):void;
export interface Config {
/** Setting this to false will disable html classes (defaults to true) */
classes?:boolean | undefined;
/** Settings this to false will disable callbacks/events (defaults to true) */
events?:boolean | undefined;
/** Time (in ms) until the fontinactive callback will be triggered (defaults to 5000) */
timeout?:number | undefined;
/** This event is triggered when all fonts have been requested. */
loading?():void;
/** This event is triggered when the fonts have rendered. */
active?():void;
/** This event is triggered when the browser does not support linked fonts or if none of the fonts could be loaded. */
inactive?():void;
/** This event is triggered once for each font that's loaded. */
fontloading?(familyName:string, fvd:string):void;
/** This event is triggered once for each font that renders. */
fontactive?(familyName:string, fvd:string):void;
/** This event is triggered if the font can't be loaded. */
fontinactive?(familyName:string, fvd:string):void;
/** Child window or iframes to manage fonts for */
context?:Array<string> | undefined;
custom?:Custom | undefined;
google?:Google | undefined;
typekit?:Typekit | undefined;
fontdeck?:Fontdeck | undefined;
monotype?:Monotype | undefined;
}
export interface Google {
api?: string | undefined;
families:Array<string>;
text?: string | undefined;
}
export interface Typekit {
id?:string | undefined;
}
export interface Custom {
families?:Array<string> | undefined;
urls?:Array<string> | undefined;
testStrings?:{[fontFamily:string]:string} | undefined;
}
export interface Fontdeck {
id?:string | undefined;
}
export interface Monotype {
projectId?:string | undefined;
version?:number | undefined;
loadAllFonts?:boolean | undefined;
}
}
Additional Details
- Last updated: Thu, 23 Dec 2021 23:36:03 GMT
- Dependencies: none
- Global values:
WebFont
Credits
These definitions were written by SECT.
1.6.37
6 months ago
1.6.36
7 months ago
1.6.38
5 months ago
1.6.35
2 years ago
1.6.34
2 years ago
1.6.33
3 years ago
1.6.32
4 years ago
1.6.31
4 years ago
1.6.30
4 years ago
1.6.29
7 years ago
1.6.28
7 years ago
1.6.27
8 years ago
1.6.26
8 years ago
1.6.25-alpha
8 years ago
1.6.24-alpha
8 years ago
1.6.23-alpha
8 years ago
1.6.22-alpha
8 years ago
1.6.21-alpha
8 years ago
1.6.20-alpha
8 years ago
1.6.19-alpha
8 years ago
1.6.14-alpha
8 years ago
1.6.13-alpha
8 years ago