Sharkey/packages/frontend/src/di.ts

15 lines
425 B
TypeScript
Raw Normal View History

/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import type { InjectionKey, Ref } from 'vue';
import type { IRouter } from '@/nirax.js';
export const DI = {
routerCurrentDepth: Symbol() as InjectionKey<number>,
router: Symbol() as InjectionKey<IRouter>,
2025-03-14 19:54:30 +09:00
mock: Symbol() as InjectionKey<boolean>,
2025-03-18 17:31:25 +09:00
pageMetadata: Symbol() as InjectionKey<Ref<Record<string, any>>>,
};