UNPKG

comic-plus

Version:

<p align="center"> <img width="200px" src="./logo.png"/> </p>

16 lines (14 loc) 471 B
import { Ref, InjectionKey } from 'vue'; import { AnchorProps } from './main.props'; export type AnchorProvide = { props: AnchorProps; currentHref: Ref<string>; handleClick: (href: string, animate?: boolean) => void; addLinkItem: (item: AnchorLinkInstance) => void; removeLinkItem: (href: string) => void; }; export type AnchorLinkInstance = { href: string; ele: Ref<any>; }; export declare const ANCHOR_PROVIDE: InjectionKey<AnchorProvide>;