Include string as a valid type for GlyphMap entries. (#156)

This commit is contained in:
Tyler Church
2021-02-25 20:00:38 -07:00
committed by GitHub
parent f338a35b97
commit b09b31e0e5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;