Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
November 9, 2022 10:36 am GMT

IndexedDB in TypeScript

To read the article in other languages go to it on my website: IndexedDB in TypeScript

TypeScript's configuration of IndexedDB

A quick description from Javascript.info on what IndexedDB is.

IndexedDB is a database that is built into a browser, much more powerful than localStorage.

  • 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 localStorage.

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.

The repository


Original Link: https://dev.to/falcosan/indexeddb-in-typescript-1nea

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To