mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-28 23:42:58 -04:00

the #shared alias used by Nuxt cannot be easily disabled and to prevent breackage with jiti, we make use of it
16 lines
658 B
TypeScript
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>>;
|