index.d.ts 482 B

123456789
  1. import type { InjectionKey, ObjectDirective, Ref } from 'vue';
  2. declare type ForwardRefSetter = <T>(el: T) => void;
  3. export declare type ForwardRefInjectionContext = {
  4. setForwardRef: ForwardRefSetter;
  5. };
  6. export declare const FORWARD_REF_INJECTION_KEY: InjectionKey<ForwardRefInjectionContext>;
  7. export declare const useForwardRef: <T>(forwardRef: Ref<T | null>) => void;
  8. export declare const useForwardRefDirective: (setForwardRef: ForwardRefSetter) => ObjectDirective;
  9. export {};