react-fontpicker-ts
Version:
A Google font picker component for React
10 lines • 437 B
TypeScript
export type FontStyle = 'italic' | 'normal';
export type FontWeight = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;
export interface CheckLoadedOptions {
fontFamily: string;
fontStyle?: FontStyle;
fontWeight?: FontWeight;
timeout?: number;
}
export declare function checkLoaded({ fontFamily, fontStyle, fontWeight, timeout, }: CheckLoadedOptions): Promise<boolean>;
//# sourceMappingURL=fontChecker.d.ts.map