diff options
| author | Fuwn <[email protected]> | 2025-05-15 03:00:29 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-05-15 03:00:34 -0700 |
| commit | b78aa74149bc006a2864af6af6e98a389767f3d8 (patch) | |
| tree | 098a0a131658857167d45e639f7336c346bb4062 /src/lib/CommandPalette | |
| parent | refactor(CommandPalette): Move and rename action type (diff) | |
| download | due.moe-b78aa74149bc006a2864af6af6e98a389767f3d8.tar.xz due.moe-b78aa74149bc006a2864af6af6e98a389767f3d8.zip | |
refactor(CommandPalette): Globally rename action type
Diffstat (limited to 'src/lib/CommandPalette')
| -rw-r--r-- | src/lib/CommandPalette/CommandPalette.svelte | 2 | ||||
| -rw-r--r-- | src/lib/CommandPalette/actions.ts | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/CommandPalette/CommandPalette.svelte b/src/lib/CommandPalette/CommandPalette.svelte index f039a250..332def8e 100644 --- a/src/lib/CommandPalette/CommandPalette.svelte +++ b/src/lib/CommandPalette/CommandPalette.svelte @@ -2,7 +2,7 @@ import { onMount } from 'svelte'; import { fly, fade } from 'svelte/transition'; import { flip } from 'svelte/animate'; - import { CommandPaletteAction } from './actions'; + import type { CommandPaletteAction } from './actions'; export let items: CommandPaletteAction[] = []; export let open = false; diff --git a/src/lib/CommandPalette/actions.ts b/src/lib/CommandPalette/actions.ts index a62ae529..acbc3629 100644 --- a/src/lib/CommandPalette/actions.ts +++ b/src/lib/CommandPalette/actions.ts @@ -4,6 +4,7 @@ export interface CommandPaletteAction { onClick?: () => void; preventDefault?: boolean; tags?: string[]; + actions?: CommandPaletteAction[]; } export const defaultActions: CommandPaletteAction[] = [ |