fixed some ts error

My environment is typescript 2.4.2, which reminds me of the wrong type.
`[ts] JSX element type 'Icon' does not have any construct or call signatures.` When you add `typeof` changes like this, there is no error
This commit is contained in:
loopArray
2017-08-27 00:13:06 +08:00
committed by GitHub
parent 72cb21a2e8
commit fbc01f889d

View File

@@ -24,7 +24,7 @@ export function createIconSet(
glyphMap: {},
fontFamily: string,
fontFile?: string
): Icon;
): typeof Icon;
/**
* Convenience method to create a custom font based on a fontello config file.
@@ -41,7 +41,7 @@ export function createIconSet(
* @param {{}} config
* @returns {Icon}
*/
export function createIconSetFromFontello(config: {}): Icon;
export function createIconSetFromFontello(config: {}): typeof Icon;
/**
* Convenience method to create a custom font from IcoMoon
@@ -59,4 +59,4 @@ export function createIconSetFromFontello(config: {}): Icon;
* @param {{}} config
* @returns {Icon}
*/
export function createIconSetFromIcoMoon(config: {}): Icon;
export function createIconSetFromIcoMoon(config: {}): typeof Icon;