mirror of
https://github.com/zoriya/expo-vector-icons.git
synced 2026-06-05 11:09:19 +00:00
Include string as a valid type for GlyphMap entries. (#156)
This commit is contained in:
Vendored
+1
-1
@@ -60,7 +60,7 @@ export interface IconButtonProps<GLYPHS extends string> extends IconProps<GLYPHS
|
||||
backgroundColor?: string | OpaqueColorValue;
|
||||
}
|
||||
export declare type GlyphMap<G extends string> = {
|
||||
[K in G]: number;
|
||||
[K in G]: number | string;
|
||||
};
|
||||
export interface Icon<G extends string, FN extends string> {
|
||||
defaultProps: any;
|
||||
|
||||
@@ -76,7 +76,7 @@ export interface IconButtonProps<GLYPHS extends string> extends IconProps<GLYPHS
|
||||
backgroundColor?: string | OpaqueColorValue;
|
||||
}
|
||||
|
||||
export type GlyphMap<G extends string> = { [K in G]: number }
|
||||
export type GlyphMap<G extends string> = { [K in G]: number | string }
|
||||
|
||||
export interface Icon<G extends string, FN extends string> {
|
||||
defaultProps: any;
|
||||
|
||||
Reference in New Issue
Block a user