UNPKG

hongluan-ui

Version:
10 lines (9 loc) 697 B
import type { ComponentPublicInstance, Ref } from 'vue'; export declare type RefSetter = (el: Element | ComponentPublicInstance | undefined) => void; export declare const composeRefs: (...refs: (Ref<HTMLElement | undefined | null> | RefSetter)[]) => (el: Element | ComponentPublicInstance | null) => void; /** * Generate function for attach ref for the h renderer * @param ref Ref<HTMLElement | ComponentPublicInstance> * @returns (val: T) => void */ export declare const refAttacher: <T extends HTMLElement | ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>>(ref: Ref<T>) => (val: T) => void;