From b09b31e0e5cc7b7fb620128cd240aeaeb8ff8242 Mon Sep 17 00:00:00 2001 From: Tyler Church Date: Thu, 25 Feb 2021 20:00:38 -0700 Subject: [PATCH] Include string as a valid type for GlyphMap entries. (#156) --- build/createIconSet.d.ts | 2 +- src/createIconSet.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/createIconSet.d.ts b/build/createIconSet.d.ts index 2c70ec2..9ab570c 100644 --- a/build/createIconSet.d.ts +++ b/build/createIconSet.d.ts @@ -60,7 +60,7 @@ export interface IconButtonProps extends IconProps = { - [K in G]: number; + [K in G]: number | string; }; export interface Icon { defaultProps: any; diff --git a/src/createIconSet.tsx b/src/createIconSet.tsx index a7279bb..65c9e01 100644 --- a/src/createIconSet.tsx +++ b/src/createIconSet.tsx @@ -76,7 +76,7 @@ export interface IconButtonProps extends IconProps = { [K in G]: number } +export type GlyphMap = { [K in G]: number | string } export interface Icon { defaultProps: any;