useRefs.d.ts 320 B

1234567
  1. import type { Ref, ComponentPublicInstance } from 'vue';
  2. import type { Key } from '../type';
  3. type RefType = HTMLElement | ComponentPublicInstance;
  4. export type RefsValue = Map<Key, RefType>;
  5. type UseRef = [(key: Key) => (el: RefType) => void, Ref<RefsValue>];
  6. declare const useRefs: () => UseRef;
  7. export default useRefs;