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

Transaction.table() is missing generic overload with insert type #1976

Open
SuNNjek opened this issue May 3, 2024 · 0 comments
Open

Transaction.table() is missing generic overload with insert type #1976

SuNNjek opened this issue May 3, 2024 · 0 comments

Comments

@SuNNjek
Copy link

SuNNjek commented May 3, 2024

With Dexie 4 there's now an option to specify an insert type for tables for optional auto-increment properties.

The Transaction.table() function is currently still missing an overload where you can specify an insert type though:

table(tableName: string): Table<any, any>;
table<T>(tableName: string): Table<T, any>;
table<T, Key>(tableName: string): Table<T, Key>;

It would be great if this could be added.

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

No branches or pull requests

1 participant