Installation
npm install --save @types/fontfaceobserver
Summary
This package contains type definitions for fontfaceobserver (https://github.com/bramstein/fontfaceobserver).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fontfaceobserver.
declare namespace FontFaceObserver {
interface FontVariant {
weight?: number | string | undefined;
style?: string | undefined;
stretch?: string | undefined;
}
}
declare class FontFaceObserver {
constructor(fontFamilyName: string, variant?: FontFaceObserver.FontVariant);
load(testString?: string | null, timeout?: number): Promise<void>;
}
declare module "fontfaceobserver" {
export = FontFaceObserver;
}
Additional Details
- Last updated: Wed, 18 Oct 2023 01:17:34 GMT
- Dependencies: none
Credits
These definitions were written by Rand Scullard.