Files
dsProject/dsBase/WebRoot/html/cdn/es/hooks/use-id/index.d.ts
2025-08-14 15:45:08 +08:00

9 lines
349 B
TypeScript

import type { InjectionKey, Ref } from 'vue';
import type { MaybeRef } from '@vueuse/core';
export declare type ElIdInjectionContext = {
prefix: number;
current: number;
};
export declare const ID_INJECTION_KEY: InjectionKey<ElIdInjectionContext>;
export declare const useId: (deterministicId?: MaybeRef<string> | undefined) => Ref<string>;