chore: oops types for currency

This commit is contained in:
tonyaellie
2025-05-24 14:58:28 +00:00
parent 1e30dc0005
commit 99691ca5bf

View File

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