UNPKG

element-plus

Version:

A Component Library for Vue 3

12 lines (11 loc) 596 B
import { InjectionKey, ObjectDirective, Ref } from "vue"; //#region ../../packages/hooks/use-forward-ref/index.d.ts type ForwardRefSetter = <T>(el: T) => void; type ForwardRefInjectionContext = { setForwardRef: ForwardRefSetter; }; declare const FORWARD_REF_INJECTION_KEY: InjectionKey<ForwardRefInjectionContext>; declare const useForwardRef: <T>(forwardRef: Ref<T | null>) => void; declare const useForwardRefDirective: (setForwardRef: ForwardRefSetter) => ObjectDirective; //#endregion export { FORWARD_REF_INJECTION_KEY, ForwardRefInjectionContext, useForwardRef, useForwardRefDirective };