Skip to content

Commit

Permalink
fix: rectify IconName type generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiehenson committed Oct 16, 2024
1 parent 8ef79cc commit 8599033
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
16 changes: 8 additions & 8 deletions src/core/Icon/types.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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];

0 comments on commit 8599033

Please sign in to comment.