From 99691ca5bfbedcb2556b1991dcce0ae03cff2d76 Mon Sep 17 00:00:00 2001 From: tonyaellie Date: Sat, 24 May 2025 14:58:28 +0000 Subject: [PATCH] chore: oops types for currency --- frontend/components/global/Currency.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/components/global/Currency.vue b/frontend/components/global/Currency.vue index 963d70d4..53f19873 100644 --- a/frontend/components/global/Currency.vue +++ b/frontend/components/global/Currency.vue @@ -19,7 +19,11 @@ const props = defineProps(); - const fmt = ref(null); + type AsyncReturnType Promise> = T extends (...args: any) => Promise + ? R + : any; + + const fmt = ref | null>(null); const loadFormatter = async () => { fmt.value = await useFormatCurrency();