index.d.ts 488 B

12345678910111213
  1. import { InjectionKey, Ref } from "vue";
  2. import { MaybeRef } from "@vueuse/core";
  3. //#region ../../packages/hooks/use-id/index.d.ts
  4. type ElIdInjectionContext = {
  5. prefix: number;
  6. current: number;
  7. };
  8. declare const ID_INJECTION_KEY: InjectionKey<ElIdInjectionContext>;
  9. declare const useIdInjection: () => ElIdInjectionContext;
  10. declare const useId: (deterministicId?: MaybeRef<string>) => Ref<string>;
  11. //#endregion
  12. export { ElIdInjectionContext, ID_INJECTION_KEY, useId, useIdInjection };