You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I declare an array of objects during initialization export interface FoldersHistory { id?: number, paths: { address: string; isFile: boolean; }[], filesCount: number, foldersCount: number }
This is the object I defined class Database extends Dexie { foldershistory !: Dexie.Table<FoldersHistory, number> | undefined; constructor() { super('ClipboadHistory'); this.version(1).stores({ foldershistory: "++id,paths,filesCount,foldersCount" }) } }
But in the Electron debugger, there is no data in the paths page
The other two pages are normal
I don't know if this is normal, the pahts page doesn't show data like the other two pages, or it can't be shown because the paths property is an array of objects
The text was updated successfully, but these errors were encountered:
How can I declare an array of objects during initialization
export interface FoldersHistory { id?: number, paths: { address: string; isFile: boolean; }[], filesCount: number, foldersCount: number }
This is the object I defined
class Database extends Dexie { foldershistory !: Dexie.Table<FoldersHistory, number> | undefined; constructor() { super('ClipboadHistory'); this.version(1).stores({ foldershistory: "++id,paths,filesCount,foldersCount" }) } }
But in the Electron debugger, there is no data in the paths page
The other two pages are normal
I don't know if this is normal, the pahts page doesn't show data like the other two pages, or it can't be shown because the paths property is an array of objects
The text was updated successfully, but these errors were encountered: