Skip to main content
Module

x/evt/lib/index.ts>dom.ApplicationCache

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.ApplicationCache
implements EventTarget
import { type dom } from "https://deno.land/x/evt@v2.4.13/lib/index.ts";
const { ApplicationCache } = dom;

Properties

deprecated
oncached: ((this: ApplicationCache, ev: Event) => any) | null
deprecated
onchecking: ((this: ApplicationCache, ev: Event) => any) | null
deprecated
ondownloading: ((this: ApplicationCache, ev: Event) => any) | null
deprecated
onerror: ((this: ApplicationCache, ev: Event) => any) | null
deprecated
onnoupdate: ((this: ApplicationCache, ev: Event) => any) | null
deprecated
onobsolete: ((this: ApplicationCache, ev: Event) => any) | null
deprecated
onprogress: ((this: ApplicationCache, ev: ProgressEvent<ApplicationCache>) => any) | null
deprecated
onupdateready: ((this: ApplicationCache, ev: Event) => any) | null
readonly
deprecated
status: number
readonly
CHECKING: number
readonly
DOWNLOADING: number
readonly
IDLE: number
readonly
OBSOLETE: number
readonly
UNCACHED: number
readonly
UPDATEREADY: number

Methods

deprecated
abort(): void
deprecated
swapCache(): void
deprecated
update(): void
addEventListener<K extends keyof ApplicationCacheEventMap>(
type: K,
listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof ApplicationCacheEventMap>(
type: K,
listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void