UNPKG

@nuxt/ui

Version:

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.

17 lines (16 loc) 627 B
import type { MaybeRef } from 'vue'; type Handler = (e?: any) => void; export interface ShortcutConfig { handler: Handler; usingInput?: string | boolean; } export interface ShortcutsConfig { [key: string]: ShortcutConfig | Handler | false | null | undefined; } export interface ShortcutsOptions { chainDelay?: number; layoutIndependent?: boolean; } export declare function extractShortcuts(items: any[] | any[][], separator?: '_' | '-'): Record<string, Handler>; export declare function defineShortcuts(config: MaybeRef<ShortcutsConfig>, options?: ShortcutsOptions): import("@vueuse/shared").Fn; export {};