A continuation of HomeBox the inventory and organization system built for the Home User
chore: oops types for currency
tonyaellie99691ca5bfbe
diff --git a/frontend/components/global/Currency.vue b/frontend/components/global/Currency.vueindex 963d70d4..53f19873 100644--- a/frontend/components/global/Currency.vue+++ b/frontend/components/global/Currency.vue@@ -19,7 +19,11 @@const props = defineProps<Props>();- const fmt = ref(null);+ type AsyncReturnType<T extends (...args: any) => Promise<any>> = T extends (...args: any) => Promise<infer R>+ ? R+ : any;++ const fmt = ref<AsyncReturnType<typeof useFormatCurrency> | null>(null);const loadFormatter = async () => {fmt.value = await useFormatCurrency();