UNPKG

@cartamd/plugin-slash

Version:

This plugin adds support for **Slash** commands. Install it using:

19 lines (18 loc) 737 B
import { SvelteComponentTyped } from "svelte"; type ObjectKey = string | number | symbol; declare const __propDef: { props: { groupBy?: <K extends ObjectKey, TItem extends Record<K, ObjectKey>>(items: TItem[], key: K) => Record<ObjectKey, TItem[]>; }; events: { [evt: string]: CustomEvent<any>; }; slots: {}; }; export type SlashProps = typeof __propDef.props; export type SlashEvents = typeof __propDef.events; export type SlashSlots = typeof __propDef.slots; export default class Slash extends SvelteComponentTyped<SlashProps, SlashEvents, SlashSlots> { get groupBy(): <K extends ObjectKey, TItem extends Record<K, ObjectKey>>(items: TItem[], key: K) => Record<ObjectKey, TItem[]>; } export {};