UNPKG

@thepassle/app-tools

Version:

Collection of tools I regularly use to build apps. Maybe they're useful to somebody else. Maybe not. Most of these are thin wrappers around native API's, like the native `<dialog>` element, `fetch` API, and `URLPattern`.

33 lines (31 loc) 657 B
/** * `'installable'` event * @example pwa.dispatchEvent(new InstallableEvent()); */ export class InstallableEvent extends Event { constructor() { super('installable'); } } /** * `'installed'` event * @example pwa.dispatchEvent(new InstalledEvent(installed)); */ export class InstalledEvent extends Event { /** * @param {boolean} installed */ constructor(installed) { super('installed'); this.installed = installed; } } /** * `'update-available'` event * @example pwa.dispatchEvent(new UpdateAvailableEvent()); */ export class UpdateAvailableEvent extends Event { constructor() { super('update-available'); } }