Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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

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