Skip to content

🎥 Make videos programmatically with React

export

Jonny Burger51c785f98d7b
diff --git a/packages/google-fonts/src/index.ts b/packages/google-fonts/src/index.ts
index 8617facc59..3d2ae853d0 100644
--- a/packages/google-fonts/src/index.ts
+++ b/packages/google-fonts/src/index.ts
@@ -6,15 +6,17 @@ type Variants = Record<
}
>;
-type FontInfo = {
- getInfo: () => {
- fontFamily: string;
- importName: string;
- version: string;
- url: string;
- unicodeRanges: Record<string, string>;
- fonts: Record<string, Record<string, Record<string, string>>>;
- };
+export type FontInfo = {
+ fontFamily: string;
+ importName: string;
+ version: string;
+ url: string;
+ unicodeRanges: Record<string, string>;
+ fonts: Record<string, Record<string, Record<string, string>>>;
+};
+
+export type GoogleFont = {
+ getInfo: () => FontInfo;
fontFamily: string;
loadFont: <T extends keyof Variants>(
style?: T | undefined,