routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
import type { InjectionKey, Ref } from 'vue';
|
||||
import type { VCommandPaletteItem } from './types.js';
|
||||
export interface CommandPaletteProvide {
|
||||
items: Ref<VCommandPaletteItem[]>;
|
||||
filteredItems: Ref<VCommandPaletteItem[]>;
|
||||
selectedIndex: Ref<number>;
|
||||
search: Ref<string>;
|
||||
setSelectedIndex: (index: number) => void;
|
||||
}
|
||||
export declare const VCommandPaletteSymbol: InjectionKey<CommandPaletteProvide>;
|
||||
export declare function useCommandPalette(): CommandPaletteProvide;
|
||||
Reference in New Issue
Block a user