mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-21 13:23:14 +01:00
chore: oops types for currency
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user