hyper/lib/constants/updater.ts

16 lines
411 B
TypeScript
Raw Normal View History

2016-07-13 12:44:24 -08:00
export const UPDATE_INSTALL = 'UPDATE_INSTALL';
export const UPDATE_AVAILABLE = 'UPDATE_AVAILABLE';
2019-12-27 06:33:21 -09:00
export interface UpdateInstallAction {
type: typeof UPDATE_INSTALL;
}
export interface UpdateAvailableAction {
type: typeof UPDATE_AVAILABLE;
version: string;
notes: string | null;
releaseUrl: string;
canInstall: boolean;
}
export type UpdateActions = UpdateInstallAction | UpdateAvailableAction;