Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to declare an object array #2083

Open
1234567845246 opened this issue Oct 19, 2024 · 0 comments
Open

How to declare an object array #2083

1234567845246 opened this issue Oct 19, 2024 · 0 comments

Comments

@1234567845246
Copy link

1234567845246 commented Oct 19, 2024

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
image
The other two pages are normal
image
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant