diff options
Diffstat (limited to 'packages/frontend/src/di.ts')
| -rw-r--r-- | packages/frontend/src/di.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/frontend/src/di.ts b/packages/frontend/src/di.ts new file mode 100644 index 0000000000..538f85df2d --- /dev/null +++ b/packages/frontend/src/di.ts @@ -0,0 +1,12 @@ +/* + * 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>, +}; |