Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

wrap

Enhance an IDB object with helpers.

function wrap(value: IDBDatabase): IDBPDatabase;
function wrap(value: IDBIndex): IDBPIndex;
function wrap(value: IDBObjectStore): IDBPObjectStore;
function wrap(value: IDBTransaction): IDBPTransaction;
function wrap(value: IDBOpenDBRequest): Promise<IDBPDatabase | undefined>;
function wrap<T>(value: IDBRequest<T>): Promise<T>;
§
wrap(value: IDBDatabase): IDBPDatabase
[src]

Enhance an IDB object with helpers.

§Parameters

§
value: IDBDatabase
[src]

The thing to enhance.

§
wrap(value: IDBIndex): IDBPIndex
[src]

§Parameters

§
value: IDBIndex
[src]
§
wrap(value: IDBObjectStore): IDBPObjectStore
[src]

§Parameters

§
value: IDBObjectStore
[src]
§
wrap(value: IDBTransaction): IDBPTransaction
[src]

§Parameters

§
value: IDBTransaction
[src]
§
wrap(value: IDBOpenDBRequest): Promise<IDBPDatabase | undefined>
[src]

§Parameters

§
value: IDBOpenDBRequest
[src]

§Return Type

§
Promise<IDBPDatabase | undefined>
[src]
§
wrap<T>(value: IDBRequest<T>): Promise<T>
[src]

§Type Parameters

§Parameters

§
value: IDBRequest<T>
[src]

§Return Type

§
Promise<T>
[src]