TypeScript's configuration of IndexedDB
9 / 11 / 2022
IndexedDB is a database that is built into a browser, much more powerful than
Stores almost any kind of values by keys, multiple key types.
Supports transactions for reliability.
Supports key range queries, indexes.
Can store much bigger volumes of data than
That power is usually excessive for traditional client-server apps. IndexedDB is intended for offline apps, to be combined with ServiceWorkers and other technologies.
As confirmed by virtually everyone, the API of IndexdDB is difficult to manage for most people, although in TypeScript it could be worse.
For this, I created a repository with a standard IndexedDB configuration in TypeScript. I hope to help someone.
If you appreciated the article, give it a like on dev.to.