Files
aihot/frontend/node_modules/element-plus/lib/hooks/use-id/index.d.ts
2026-05-26 12:56:03 +08:00

12 lines
457 B
TypeScript

import { InjectionKey, MaybeRef, Ref } from "vue";
//#region ../../packages/hooks/use-id/index.d.ts
type ElIdInjectionContext = {
prefix: number;
current: number;
};
declare const ID_INJECTION_KEY: InjectionKey<ElIdInjectionContext>;
declare const useIdInjection: () => ElIdInjectionContext;
declare const useId: (deterministicId?: MaybeRef<string>) => Ref<string>;
//#endregion
export { ElIdInjectionContext, ID_INJECTION_KEY, useId, useIdInjection };