index.d.ts 596 B

123456789101112
  1. import { InjectionKey, ObjectDirective, Ref } from "vue";
  2. //#region ../../packages/hooks/use-forward-ref/index.d.ts
  3. type ForwardRefSetter = <T>(el: T) => void;
  4. type ForwardRefInjectionContext = {
  5. setForwardRef: ForwardRefSetter;
  6. };
  7. declare const FORWARD_REF_INJECTION_KEY: InjectionKey<ForwardRefInjectionContext>;
  8. declare const useForwardRef: <T>(forwardRef: Ref<T | null>) => void;
  9. declare const useForwardRefDirective: (setForwardRef: ForwardRefSetter) => ObjectDirective;
  10. //#endregion
  11. export { FORWARD_REF_INJECTION_KEY, ForwardRefInjectionContext, useForwardRef, useForwardRefDirective };