From a110520dbbdf37040bb17a566ebbcd8364a04825 Mon Sep 17 00:00:00 2001 From: Bryant Kelley Date: Fri, 15 Nov 2024 12:57:04 -0800 Subject: [PATCH 1/3] Add FeaturedBadgeNames type --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index 1800c7b..75d5f6f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,3 +5,4 @@ export { default as FeaturedBadge } from "./FeaturedBadge" export * from "./featuredProjectBadges" export const featuredBadgeNames = Object.keys(featuredLogos.default) +export type FeaturedBadgeNames = keyof typeof featuredLogos.default From 46511acf29fcfdb9364f0f9ccaad8904bd1d829f Mon Sep 17 00:00:00 2001 From: Bryant Kelley Date: Fri, 15 Nov 2024 14:23:51 -0800 Subject: [PATCH 2/3] Remove string array of featured badge names --- src/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 75d5f6f..6113c3e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,5 +4,4 @@ export { default as ProjectBadge } from "./ProjectBadge" export { default as FeaturedBadge } from "./FeaturedBadge" export * from "./featuredProjectBadges" -export const featuredBadgeNames = Object.keys(featuredLogos.default) export type FeaturedBadgeNames = keyof typeof featuredLogos.default From 40135207d37d843506913df95939456a08257755 Mon Sep 17 00:00:00 2001 From: Bryant Kelley Date: Fri, 15 Nov 2024 14:25:36 -0800 Subject: [PATCH 3/3] Add changeset --- .changeset/orange-apples-push.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/orange-apples-push.md diff --git a/.changeset/orange-apples-push.md b/.changeset/orange-apples-push.md new file mode 100644 index 0000000..3d35772 --- /dev/null +++ b/.changeset/orange-apples-push.md @@ -0,0 +1,6 @@ +--- +"formidable-oss-badges": minor +--- + +Remove featuredBadgeNames string array and replace with a type for narrowing +purposes