feat: 添加依赖注入工具函数

This commit is contained in:
yangsy
2025-12-24 23:09:28 +08:00
parent bb140433d8
commit 426ca4947a
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
import type { InjectionKey } from 'vue';
export const createInjectionKey = <T>(key: string): InjectionKey<T> => {
return Symbol(key);
};

View File

@@ -1,4 +1,5 @@
export * from './cipher';
export * from './create-injection-key';
export * from './download';
export * from './env';
export * from './format-duration';