diff --git a/src/utils/create-injection-key.ts b/src/utils/create-injection-key.ts new file mode 100644 index 0000000..b529c90 --- /dev/null +++ b/src/utils/create-injection-key.ts @@ -0,0 +1,5 @@ +import type { InjectionKey } from 'vue'; + +export const createInjectionKey = (key: string): InjectionKey => { + return Symbol(key); +}; diff --git a/src/utils/index.ts b/src/utils/index.ts index 749d38d..e0471d4 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,4 +1,5 @@ export * from './cipher'; +export * from './create-injection-key'; export * from './download'; export * from './env'; export * from './format-duration';