From 8599033707edca6905680a6e10f73e2a8b7d231f Mon Sep 17 00:00:00 2001 From: Jamie Henson Date: Wed, 16 Oct 2024 16:16:22 +0100 Subject: [PATCH] fix: rectify IconName type generation --- package.json | 2 +- src/core/Icon/types.ts | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index c0182d3f..6861e1b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ably/ui", - "version": "14.7.0", + "version": "14.7.1", "description": "Home of the Ably design system library ([design.ably.com](https://design.ably.com)). It provides a showcase, development/test environment and a publishing pipeline for different distributables.", "repository": { "type": "git", diff --git a/src/core/Icon/types.ts b/src/core/Icon/types.ts index 443463ba..ee19d364 100644 --- a/src/core/Icon/types.ts +++ b/src/core/Icon/types.ts @@ -1,13 +1,5 @@ import { computedIcons } from "./computed-icons"; -export type IconName = - | (typeof computedIcons.gui)[number] - | (typeof computedIcons.display)[number] - | (typeof computedIcons.social)[number] - | (typeof computedIcons.other)[number] - | (typeof computedIcons.tech)[number] - | (typeof computedIcons.product)[number]; - export const iconNames = { gui: computedIcons.gui, display: computedIcons.display, @@ -16,3 +8,11 @@ export const iconNames = { tech: computedIcons.tech, product: computedIcons.product, }; + +export type IconName = + | (typeof iconNames.gui)[number] + | (typeof iconNames.display)[number] + | (typeof iconNames.social)[number] + | (typeof iconNames.other)[number] + | (typeof iconNames.tech)[number] + | (typeof iconNames.product)[number];