hongluan-ui
Version:
Hongluan Component Library for Vue 3
10 lines (9 loc) • 475 B
TypeScript
import type { InjectionKey, Ref, ObjectDirective } from 'vue';
declare type ForwardRefSetter = <T>(el: T) => void;
export declare type ForwardRefInjectionContext = {
setForwardRef: ForwardRefSetter;
};
export declare const FORWARD_REF_INJECTION_KEY: InjectionKey<ForwardRefInjectionContext>;
export declare const useForwardRef: <T>(forwardRef: Ref<T>) => void;
export declare const useForwardRefDirective: (setForwardRef: ForwardRefSetter) => ObjectDirective;
export {};