Files
prop-data-guard/frontend/node_modules/element-plus/es/hooks/use-forward-ref/index.d.ts
T
2026-04-22 17:07:33 +08:00

12 lines
596 B
TypeScript

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 };