Skip to content

Commit

Permalink
fix(icons): auto generated icon type needs const array (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
remmycat authored Feb 20, 2024
1 parent f74db06 commit e73c650
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/icons/icons-optimized/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1500,7 +1500,7 @@ export const PureIconKeys = [
'blrVideoCamera',
'blrVideo',
'blrWiFi',
];
] as const;

export const IconMapping = {
blr360Lg,
Expand Down
2 changes: 1 addition & 1 deletion packages/icons/scripts/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fs.readdir(iconDir, (err, files) => {
export const PureIconKeys = [
${pureKeys.join(',\n')}
];
] as const;
export const IconMapping = { ${iconNames.map((icon) => icon).join(',\n')} };
export type IconType = keyof typeof IconMapping;
Expand Down

0 comments on commit e73c650

Please sign in to comment.