index.d.ts 394 B

123456789
  1. import { type MaybeRef } from '@vueuse/core';
  2. import type { InjectionKey, Ref } from 'vue';
  3. export type ElIdInjectionContext = {
  4. prefix: number;
  5. current: number;
  6. };
  7. export declare const ID_INJECTION_KEY: InjectionKey<ElIdInjectionContext>;
  8. export declare const useIdInjection: () => ElIdInjectionContext;
  9. export declare const useId: (deterministicId?: MaybeRef<string>) => Ref<string>;