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();