@code-gorilla-au/vue-forms
Version:
form authoring light weight framework
7 lines (6 loc) • 402 B
TypeScript
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;