injectKey.ts 425 B

123456789101112
  1. import type { InjectionKey, Ref } from 'vue'
  2. export type SlideScale = Ref<number>
  3. export type SlideId = Ref<string>
  4. export type RadioGroupValue = {
  5. value: Ref<string>
  6. updateValue: (value: string) => void
  7. }
  8. export const injectKeySlideScale: InjectionKey<SlideScale> = Symbol()
  9. export const injectKeySlideId: InjectionKey<SlideId> = Symbol()
  10. export const injectKeyRadioGroupValue: InjectionKey<RadioGroupValue> = Symbol()