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

#1105 Allow readonly arrays for bulk put & get methods #1106

Merged
merged 2 commits into from
Aug 25, 2020

Conversation

wh1t3cAt1k
Copy link
Contributor

@wh1t3cAt1k wh1t3cAt1k commented Aug 25, 2020

Closes #1105

@dfahlander You mentioned that it's going to be a tsc error, but seemingly the build and tests all pass without any errors.

@dfahlander
Copy link
Collaborator

Thanks. Yes all tests pass for this PR: https://travis-ci.org/github/dfahlander/Dexie.js/builds/720915693.

Question: Do we need to use (T[] | readonly T[]). Could we just use readonly T[]. A normal array would also be assignable to a readonly array.

@wh1t3cAt1k
Copy link
Contributor Author

@dfahlander good catch, indeed - fixed.

@wh1t3cAt1k
Copy link
Contributor Author

@dfahlander For some reason, the check seems to be stuck... Is it normal or should the CI be relaunched?

@dfahlander
Copy link
Collaborator

Thanks for the fix! Yes, I don't know why the github/travis integration seem to be faulty. The build went fine anyway https://travis-ci.org/github/dfahlander/Dexie.js/builds/720938812 so I will merge.

@dfahlander dfahlander merged commit dea8686 into dexie:master Aug 25, 2020
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

Successfully merging this pull request may close these issues.

bulkAdd & bulkPut typing: accept a readonly array
2 participants