You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
466 B

1 month ago
  1. import type { InjectionKey, ObjectDirective, Ref } from 'vue';
  2. type ForwardRefSetter = <T>(el: T) => void;
  3. export 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 {};