index.d.ts 402 B

123456789
  1. import type { InjectionKey, Ref } from 'vue';
  2. import type { MaybeRef } from '@vueuse/core';
  3. export declare 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>;