IDBOpenDBRequest
import { IDBOpenDBRequest } from "https://raw.githubusercontent.com/aaronhuggins/indexeddb/main/ponyfill.ts";
Also inherits methods from its parents IDBRequest and EventTarget.
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
onblocked: ((this: IDBOpenDBRequest, ev: Event) => any) | null;
onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
prototype: IDBOpenDBRequest;
addEventListener<K extends keyof IDBOpenDBRequestEventMap>(
type: K,
listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void;new (): IDBOpenDBRequest;
removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(
type: K,
listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;removeEventListener(
}type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;const IDBOpenDBRequest;
§Extends
§Properties
§
onblocked: ((this: IDBOpenDBRequest, ev: Event) => any) | null
[src]§
onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null
[src]§
prototype: IDBOpenDBRequest
[src]§Methods
§
addEventListener<K extends keyof IDBOpenDBRequestEventMap>(
[src]type: K,
listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
new (): IDBOpenDBRequest
[src]§
removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(
[src]type: K,
listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void