Skip to content

Commit

Permalink
feat(lib): emit strict type definition of icons
Browse files Browse the repository at this point in the history
  • Loading branch information
minenwerfer authored and rektdeckard committed Jan 22, 2024
1 parent 983a79d commit 0af7edd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/icons.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { IconEntry, IconCategory, FigmaCategory } from "./types";

export const icons: ReadonlyArray<IconEntry> = [
export const icons = <const>[
{
name: "address-book",
pascal_name: "AddressBook",
Expand Down Expand Up @@ -16806,4 +16806,4 @@ export const icons: ReadonlyArray<IconEntry> = [
published_in: 1.0,
updated_in: 1.0,
},
];
] satisfies ReadonlyArray<IconEntry>;
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ export interface IconEntry {
name: string;
pascal_name: string;
};
categories: IconCategory[];
categories: readonly IconCategory[];
figma_category: FigmaCategory;
tags: string[];
tags: readonly string[];
codepoint: number;
published_in: number;
updated_in: number;
Expand Down

0 comments on commit 0af7edd

Please sign in to comment.