@todesktop/runtime
Advanced tools
Comparing version 1.5.3 to 1.5.4
@@ -48,30 +48,30 @@ import type { AllPublishOptions, PublishConfiguration } from "builder-util-runtime"; | ||
declare interface AutoUpdater { | ||
addListener<E extends keyof EventMap>(event: E, listener: EventMap[E]): this; | ||
emit<E extends keyof EventMap>(event: E, ...args: Parameters<EventMap[E]>): boolean; | ||
emitAsync<E extends keyof EventMap>(event: E, ...args: Parameters<EventMap[E]>): Promise<unknown[]>; | ||
hasListeners<E extends keyof EventMap>(event?: E): boolean; | ||
eventNames(): (keyof EventMap | string)[]; | ||
listenerCount<E extends keyof EventMap>(event: E): number; | ||
listeners<E extends keyof EventMap>(event: E): EventMap[E][]; | ||
listenersAny<E extends keyof EventMap>(): EventMap[E][]; | ||
listenTo<E extends keyof EventMap>(target: GeneralEventEmitter, events: E | E[], options?: ListenToOptions): this; | ||
listenTo<E extends keyof EventMap>(target: GeneralEventEmitter, events: Record<E, EventMap[E]>, options?: ListenToOptions): this; | ||
many<E extends keyof EventMap>(event: E, timesToListen: number, listener: EventMap[E], options?: boolean | object): this; | ||
off<E extends keyof EventMap>(event: E, listener: EventMap[E]): this; | ||
offAny<E extends keyof EventMap>(listener: EventMap[E]): this; | ||
on<E extends keyof EventMap>(event: E, listener: EventMap[E]): this; | ||
onAny<E extends keyof EventMap>(listener: (event: E, values: unknown[]) => void): this; | ||
once<E extends keyof EventMap>(event: E, listener: EventMap[E]): this; | ||
prependAny<E extends keyof EventMap>(listener: (event: E, values: unknown[]) => void): this; | ||
prependListener<E extends keyof EventMap>(event: E, listener: EventMap[E]): this; | ||
prependMany<E extends keyof EventMap>(event: E, timesToListen: number, listener: EventMap[E], options?: boolean | object): this; | ||
prependOnceListener<E extends keyof EventMap>(event: E, listener: EventMap[E]): this; | ||
removeAllListeners<E extends keyof EventMap>(event?: E): this; | ||
removeListener<E extends keyof EventMap>(event: E, listener: EventMap[E]): this; | ||
stopListeningTo<E extends keyof EventMap>(target?: GeneralEventEmitter, event?: E): boolean; | ||
waitFor<E extends keyof EventMap>(event: E, timeout?: number): CancelablePromise<Parameters<EventMap[E]>>; | ||
waitFor<E extends keyof EventMap>(event: E, filter?: WaitForFilter): CancelablePromise<Parameters<EventMap[E]>>; | ||
waitFor<E extends keyof EventMap>(event: E, options?: WaitForOptions): CancelablePromise<Parameters<EventMap[E]>>; | ||
addListener<E extends keyof AutoUpdaterEvents>(event: E, listener: AutoUpdaterEvents[E]): this; | ||
emit<E extends keyof AutoUpdaterEvents>(event: E, ...args: Parameters<AutoUpdaterEvents[E]>): boolean; | ||
emitAsync<E extends keyof AutoUpdaterEvents>(event: E, ...args: Parameters<AutoUpdaterEvents[E]>): Promise<unknown[]>; | ||
hasListeners<E extends keyof AutoUpdaterEvents>(event?: E): boolean; | ||
eventNames(): (keyof AutoUpdaterEvents | string)[]; | ||
listenerCount<E extends keyof AutoUpdaterEvents>(event: E): number; | ||
listeners<E extends keyof AutoUpdaterEvents>(event: E): AutoUpdaterEvents[E][]; | ||
listenersAny<E extends keyof AutoUpdaterEvents>(): AutoUpdaterEvents[E][]; | ||
listenTo<E extends keyof AutoUpdaterEvents>(target: GeneralEventEmitter, events: E | E[], options?: ListenToOptions): this; | ||
listenTo<E extends keyof AutoUpdaterEvents>(target: GeneralEventEmitter, events: Record<E, AutoUpdaterEvents[E]>, options?: ListenToOptions): this; | ||
many<E extends keyof AutoUpdaterEvents>(event: E, timesToListen: number, listener: AutoUpdaterEvents[E], options?: boolean | object): this; | ||
off<E extends keyof AutoUpdaterEvents>(event: E, listener: AutoUpdaterEvents[E]): this; | ||
offAny<E extends keyof AutoUpdaterEvents>(listener: AutoUpdaterEvents[E]): this; | ||
on<E extends keyof AutoUpdaterEvents>(event: E, listener: AutoUpdaterEvents[E]): this; | ||
onAny<E extends keyof AutoUpdaterEvents>(listener: (event: E, values: unknown[]) => void): this; | ||
once<E extends keyof AutoUpdaterEvents>(event: E, listener: AutoUpdaterEvents[E]): this; | ||
prependAny<E extends keyof AutoUpdaterEvents>(listener: (event: E, values: unknown[]) => void): this; | ||
prependListener<E extends keyof AutoUpdaterEvents>(event: E, listener: AutoUpdaterEvents[E]): this; | ||
prependMany<E extends keyof AutoUpdaterEvents>(event: E, timesToListen: number, listener: AutoUpdaterEvents[E], options?: boolean | object): this; | ||
prependOnceListener<E extends keyof AutoUpdaterEvents>(event: E, listener: AutoUpdaterEvents[E]): this; | ||
removeAllListeners<E extends keyof AutoUpdaterEvents>(event?: E): this; | ||
removeListener<E extends keyof AutoUpdaterEvents>(event: E, listener: AutoUpdaterEvents[E]): this; | ||
stopListeningTo<E extends keyof AutoUpdaterEvents>(target?: GeneralEventEmitter, event?: E): boolean; | ||
waitFor<E extends keyof AutoUpdaterEvents>(event: E, timeout?: number): CancelablePromise<Parameters<AutoUpdaterEvents[E]>>; | ||
waitFor<E extends keyof AutoUpdaterEvents>(event: E, filter?: WaitForFilter): CancelablePromise<Parameters<AutoUpdaterEvents[E]>>; | ||
waitFor<E extends keyof AutoUpdaterEvents>(event: E, options?: WaitForOptions): CancelablePromise<Parameters<AutoUpdaterEvents[E]>>; | ||
} | ||
interface EventMap { | ||
export interface AutoUpdaterEvents { | ||
["error"](error: Error, message?: string): void; | ||
@@ -78,0 +78,0 @@ ["before-quit-for-update"](...args: unknown[]): void; |
@@ -21,1 +21,3 @@ import AutoUpdater from "./AutoUpdater"; | ||
export { autoUpdater as electronUpdater } from "electron-updater"; | ||
export type { AutoUpdaterEvents, UpdateAvailableEventPayload, } from "./AutoUpdater"; | ||
export type { TDUpdateInfo } from "./updaterAgents"; |
@@ -7,3 +7,3 @@ { | ||
"name": "@todesktop/runtime", | ||
"version": "1.5.3", | ||
"version": "1.5.4", | ||
"license": "MIT", | ||
@@ -10,0 +10,0 @@ "author": "ToDesktop <hi@todesktop.com> (https://www.todesktop.com/)", |
90565
1469