UNPKG

@nextcloud/vue

Version:
15 lines (14 loc) 532 B
import { ComputedRef, InjectionKey } from 'vue'; export declare const INSIDE_RADIO_GROUP_KEY: InjectionKey<ComputedRef<{ modelValue: string; onUpdate: (value: string) => void; register: (isButton: boolean) => void; }>>; /** * To check if inside a radio group and if yes inject the current modelValue as well as the onUpdate method. */ export declare function useInsideRadioGroup(): ComputedRef<{ modelValue: string; onUpdate: (value: string) => void; register: (isButton: boolean) => void; }> | undefined;