Skip to content

Commit

Permalink
[MenuOption] Allow additional properties to be added (without Typescr…
Browse files Browse the repository at this point in the history
…ipt complaining)
  • Loading branch information
techniq committed Jun 27, 2024
1 parent 17df8ad commit 23e44f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/old-ties-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

[MenuOption] Allow additional properties to be added (without Typescript complaining)
2 changes: 1 addition & 1 deletion packages/svelte-ux/src/lib/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export type MenuOption<T = any> = {
value: T;
icon?: string;
group?: string;
};
} & Record<string, any>;

export type LabelPlacement = 'inset' | 'float' | 'top' | 'left';
export const DEFAULT_LABEL_PLACEMENT: LabelPlacement = 'inset';
Expand Down

0 comments on commit 23e44f6

Please sign in to comment.