Skip to content

Commit

Permalink
Featured Badge Names Type (#97)
Browse files Browse the repository at this point in the history
* Add FeaturedBadgeNames type

* Remove string array of featured badge names

* Add changeset
  • Loading branch information
bryantkelley authored Nov 15, 2024
1 parent b6ca9ce commit 52ce32a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/orange-apples-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"formidable-oss-badges": minor
---

Remove featuredBadgeNames string array and replace with a type for narrowing
purposes
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +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

0 comments on commit 52ce32a

Please sign in to comment.