mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
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:
6
types/react-native-vector-icons/index.d.ts
vendored
6
types/react-native-vector-icons/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user