Skip to content

Commit

Permalink
fix(ui): make headingN and sizeN optional in icon set types
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufkandemir committed Oct 3, 2024
1 parent 6411427 commit 5d63093
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions ui/types/extras/icon-set.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,27 @@ type QuasarIconSetEditor =
| "undo"
| "redo"
| "heading"
| "code"
| "size"
| "font"
| "viewSource";
type QuasarIconSetEditorOptional =
// defaults to "heading"
| "heading1"
| "heading2"
| "heading3"
| "heading4"
| "heading5"
| "heading6"
| "code"
| "size"

// defaults to "size"
| "size1"
| "size2"
| "size3"
| "size4"
| "size5"
| "size6"
| "size7"
| "font"
| "viewSource";
| "size7";
type QuasarIconSetExpansionItem = "icon" | "denseIcon";
type QuasarIconSetFab = "icon" | "activeIcon";
type QuasarIconSetField = "clear" | "error";
Expand Down Expand Up @@ -90,7 +94,8 @@ export interface QuasarIconSet {
carousel: StringDictionary<QuasarIconSetCarousel>;
chip: StringDictionary<QuasarIconSetChip>;
datetime: StringDictionary<QuasarIconSetDatetime>;
editor: StringDictionary<QuasarIconSetEditor>;
editor: StringDictionary<QuasarIconSetEditor> &
Partial<StringDictionary<QuasarIconSetEditorOptional>>;
expansionItem: StringDictionary<QuasarIconSetExpansionItem>;
fab: StringDictionary<QuasarIconSetFab>;
field: StringDictionary<QuasarIconSetField>;
Expand Down

0 comments on commit 5d63093

Please sign in to comment.