I can’t find how to import the type ExportProgress
from dexie-export-import:
If I do:
import "dexie-export-import";
function progressCallback ({totalRows, completedRows, ...restProps} : ExportProgress) {
console.log(`Progress: ${completedRows} of ${totalRows} rows completed`);
return true;
}
then I get an error saying that ExportProgress
does not exist. If I do:
import type { ExportProgress } from "dexie-export-import";
then I get an error Error: Module '"dexie-export-import"' has no exported member 'ExportProgress'. Did you mean to use 'import ExportProgress from "dexie-export-import"' instead? (ts)
.
The library exports it here via:
export interface ExportProgress {
totalTables: number;
completedTables: number;
totalRows: number | undefined;
completedRows: number;
done: boolean;
}
Any idea what I’m missing?