hongluan-ui
Version:
Hongluan Component Library for Vue 3
10 lines (9 loc) • 327 B
TypeScript
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>;