UNPKG

@code-gorilla-au/vue-forms

Version:
7 lines (6 loc) 402 B
import { Ref, ComponentPublicInstance } from 'vue'; export type MaybeRef<T> = Ref<T> | T; export type MaybeElementRef<T extends MaybeElement = MaybeElement> = MaybeRef<T>; export type MaybeElement = HTMLElement | HTMLInputElement | SVGElement | ComponentPublicInstance | undefined | null; export type VueInstance = ComponentPublicInstance; export declare function resolveUnref<T>(ref: MaybeRef<T>): T;