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.
10 lines
482 B
10 lines
482 B
1 month ago
|
import type { InjectionKey, ObjectDirective, Ref } from 'vue';
|
||
|
declare type ForwardRefSetter = <T>(el: T) => void;
|
||
|
export declare type ForwardRefInjectionContext = {
|
||
|
setForwardRef: ForwardRefSetter;
|
||
|
};
|
||
|
export declare const FORWARD_REF_INJECTION_KEY: InjectionKey<ForwardRefInjectionContext>;
|
||
|
export declare const useForwardRef: <T>(forwardRef: Ref<T | null>) => void;
|
||
|
export declare const useForwardRefDirective: (setForwardRef: ForwardRefSetter) => ObjectDirective;
|
||
|
export {};
|