Edit ExcelImportFlow
This commit is contained in:
@@ -13,8 +13,8 @@ const props = defineProps<{
|
||||
|
||||
const emit = defineEmits<{
|
||||
start: [];
|
||||
done: [ImportContactsResult | Record<string, unknown>];
|
||||
fail: [string];
|
||||
done: [result: ImportContactsResult];
|
||||
fail: [message: string];
|
||||
settled: [];
|
||||
}>();
|
||||
|
||||
@@ -71,7 +71,7 @@ async function postImport(file: File, map?: Record<string, string>) {
|
||||
headers: { 'Content-Type': undefined },
|
||||
},
|
||||
);
|
||||
return data;
|
||||
return data as ImportContactsResult;
|
||||
}
|
||||
|
||||
function apiMessage(e: unknown, fallback: string) {
|
||||
|
||||
Reference in New Issue
Block a user