We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96182eb commit 6f4096dCopy full SHA for 6f4096d
package.json
@@ -3,6 +3,7 @@
3
"version": "1.0.3",
4
"description": "Simple React component to load Google Fonts.",
5
"main": "build/index.js",
6
+ "typings": "src/index.d.ts",
7
"repository": "https://github.com/jakewtaylor/react-google-font-loader",
8
"author": "Jake Taylor",
9
"license": "MIT",
src/index.d.ts
@@ -0,0 +1,14 @@
1
+import * as React from 'react';
2
+
+export interface Font {
+ font: string;
+ weights?: number[];
+}
+export interface GoogleFontLoaderProps {
+ fonts: Font[];
10
11
12
+declare class GoogleFontLoader extends React.PureComponent<GoogleFontLoaderProps> {};
13
14
+export default GoogleFontLoader;
0 commit comments