PronounsPage/shared/injectionKeys.ts
Valentyne Stigloher 10180aa6a3 (refactor) use #shared alias instead of ~~/shared
the #shared alias used by Nuxt cannot be easily disabled and to prevent breackage with jiti, we make use of it
2025-08-17 18:56:02 +02:00

16 lines
658 B
TypeScript

import type { InjectionKey } from 'vue';
import type { Source } from '#shared/classes.ts';
export const addPronounInjectionKey = Symbol() as InjectionKey<(pronoun: string) => void>;
export const changeSourceInjectionKey = Symbol() as InjectionKey<{
approve: (source: Source) => void;
hide: (source: Source) => void;
remove: (source: Source) => void;
edit: (source: Source) => void;
}>;
export const collapseNounWordsInjectionKey = Symbol() as InjectionKey<boolean>;
export const neutralGenderNameInjectionKey = Symbol() as InjectionKey<string>;
export const adminStorageRefreshInjectionKey = Symbol() as InjectionKey<() => Promise<void>>;