Skip to content

Commit 105103f

Browse files
committed
Update reference to typings
1 parent 4d75ccf commit 105103f

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

build/index.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import * as React from 'react';
2+
3+
export interface Font {
4+
font: string;
5+
weights?: number[];
6+
}
7+
8+
export interface GoogleFontLoaderProps {
9+
fonts: Font[];
10+
}
11+
12+
declare class GoogleFontLoader extends React.PureComponent<GoogleFontLoaderProps> {};
13+
14+
export default GoogleFontLoader;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.4-alpha.1",
44
"description": "Simple React component to load Google Fonts.",
55
"main": "build/index.js",
6-
"typings": "src/index.d.ts",
6+
"typings": "build/index.d.ts",
77
"repository": "https://github.com/jakewtaylor/react-google-font-loader",
88
"author": "Jake Taylor",
99
"license": "MIT",

0 commit comments

Comments
 (0)