/
githubmirror
/
hyper
Обзор
Документация
Войти
/
githubmirror
/
hyper
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
lib/actions/updater.ts
22 строки
541 B
Labhansh Agrawal
sort imports
25 июл 2023, 21:46
25 июл 2023, 21:46
36ff6e9
Код
Авторство
О чём код?
import {UPDATE_INSTALL, UPDATE_AVAILABLE} from '../../typings/constants/updater'; import type {HyperActions} from '../../typings/hyper'; import rpc from '../rpc'; export function installUpdate(): HyperActions { return { type: UPDATE_INSTALL, effect: () => { rpc.emit('quit and install'); } }; } export function updateAvailable(version: string, notes: string, releaseUrl: string, canInstall: boolean): HyperActions { return { type: UPDATE_AVAILABLE, version, notes, releaseUrl, canInstall }; }