UNPKG

comic-plus

Version:

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

21 lines (19 loc) 593 B
import { CSSProperties, ComputedRef, InjectionKey } from 'vue'; import { PistolProps } from './main.props'; export type BulletInstance = { sign: string; uid: number; style?: CSSProperties; }; export type Bullets = { [key in string]: BulletInstance; }; export type PistolProvide = { props: PistolProps; bullets: Bullets; pistolStyle: ComputedRef<CSSProperties>; addBullet: (item: BulletInstance) => void; removeBullet: (uid: number) => void; itemHandleClick: (sign?: string) => void; }; export declare const PISTOL_PROVIDE: InjectionKey<PistolProvide>;