1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-04 00:15:35 +02:00
Files
misskey/packages/frontend/src/di.ts
syuilo 76dc7affe0 wip
2025-03-14 20:29:39 +09:00

17 lines
550 B
TypeScript

/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import type { InjectionKey, Ref } from 'vue';
import type { IRouter, RouterFlag } from '@/nirax.js';
export const DI = {
routerCurrentDepth: Symbol() as InjectionKey<number>,
router: Symbol() as InjectionKey<IRouter>,
viewId: Symbol() as InjectionKey<string>,
viewTransitionId: Symbol() as InjectionKey<Ref<string>>,
mock: Symbol() as InjectionKey<boolean>,
navHook: Symbol() as InjectionKey<(path: string, flag?: RouterFlag) => void>,
};