UNPKG

hongluan-ui

Version:
10 lines (9 loc) 327 B
import type { InjectionKey } from 'vue'; export interface AnchorContext { name: 'Anchor'; currentLink: string; addLink: (hash: string, node: HTMLElement) => void; removeLink: () => void; handleClick: (e: Event, hash?: string) => void; } export declare const anchorInjectionKey: InjectionKey<AnchorContext>;