Skip to main content

Web support package for mtcute

This package works with Node.js, Deno, Bun, Browsers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
70%
Published
2 weeks ago (0.19.5)
class IdbStorageDriver
extends BaseStorageDriver

Constructors

new
IdbStorageDriver(_dbName: string)

Properties

private
_migrations: Map<string, Map<number, MigrationFunction>>
private
_pendingWrites: [string, unknown][]
private
_repoCountOverride: number | undefined

Methods

_destroy(): void
_load(): Promise<void>
_save(): Promise<void>
registerMigration(
repo: string,
version: number,
migration: MigrationFunction,
): void
setRepoCountOverride(repoCount: number): void
writeLater(
os: string,
obj: unknown,
): void

Add Package

deno add jsr:@mtcute/web

Import symbol

import { IdbStorageDriver } from "@mtcute/web";

---- OR ----

Import directly with a jsr specifier

import { IdbStorageDriver } from "jsr:@mtcute/web";

Add Package

npx jsr add @mtcute/web

Import symbol

import { IdbStorageDriver } from "@mtcute/web";

Add Package

yarn dlx jsr add @mtcute/web

Import symbol

import { IdbStorageDriver } from "@mtcute/web";

Add Package

pnpm dlx jsr add @mtcute/web

Import symbol

import { IdbStorageDriver } from "@mtcute/web";

Add Package

bunx jsr add @mtcute/web

Import symbol

import { IdbStorageDriver } from "@mtcute/web";