type Shortcut
Properties
id: string
displayName: LocalizedString
hidden?: boolean
description?: LocalizedString
icon?:
| string
| {src: string, template?: boolean, fallbackIcon?: string, scale?: number, }
prependKeywords?: string[]
appendKeywords?: string[]
handle?: (context: ShortcutContext) =>
| Promise<unknown>
| unknown
subShortcutFilters?: string[]
subShortcuts?:
| SubShortcut[]
| ((context: LoadSubShortcutsContext) =>
| Promise<SubShortcut[]>
| SubShortcut[])
onSubShortcutContextMenu?: (
context: ShortcutContext
) => ShortcutContextMenu[] | Promise<
ShortcutContextMenu[]
>
subShortcutPreview?: (
context: ShortcutContext
) => Promise<ShortcutPreview | undefined> | ShortcutPreview | undefined
livePreview?: (
parameters: string
) => Promise<LivePreviewContent | undefined> | LivePreviewContent | undefined
