feat: add InjectionKey exports

This commit is contained in:
Sebin Nyshkim 2023-01-20 00:32:06 +01:00
parent baf6161d95
commit 7aeecdb656

6
src/keys.ts Normal file
View file

@ -0,0 +1,6 @@
import type { InjectionKey, Ref } from "vue";
export const isWarnKey: InjectionKey<Ref<boolean>> = Symbol("isWarnKey");
export const nsfwKey: InjectionKey<Ref<boolean>> = Symbol("nsfwKey");
export const showModalKey: InjectionKey<Function> = Symbol("showModalKey");
export const modalResultKey: InjectionKey<Function> = Symbol("modalResultKey");