diff options
Diffstat (limited to 'front-end/src/store/index.ts')
-rw-r--r-- | front-end/src/store/index.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/front-end/src/store/index.ts b/front-end/src/store/index.ts index 1b2d7ee..936dddf 100644 --- a/front-end/src/store/index.ts +++ b/front-end/src/store/index.ts @@ -16,10 +16,12 @@ import { useSession } from "@vnuge/vnlib.browser"; import { set } from "@vueuse/core"; import { defineStore } from "pinia"; -import { computed, shallowRef } from "vue"; +import { computed, shallowRef, type UnwrapNestedRefs } from "vue"; export { SortType, QueryType } from './sharedTypes' +export const storeExport = <T>(val: T): UnwrapNestedRefs<T> => val as UnwrapNestedRefs<T>; + /** * Loads the main store for the application */ |