/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/service-worker/worker/src/msg.ts
38 строк
874 B
Joey Perrott
refactor: update license text to point to angular.dev (#57901)
24 сен 2024, 16:33
24 сен 2024, 16:33
9dbe6fc
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ export interface MsgAny { action: string; } export interface MsgCheckForUpdates { action: 'CHECK_FOR_UPDATES'; nonce: number; } export function isMsgCheckForUpdates(msg: MsgAny): msg is MsgCheckForUpdates { return msg.action === 'CHECK_FOR_UPDATES'; } export interface MsgActivateUpdate { action: 'ACTIVATE_UPDATE'; nonce: number; } export function isMsgActivateUpdate(msg: MsgAny): msg is MsgActivateUpdate { return msg.action === 'ACTIVATE_UPDATE'; } export interface MsgCheckVersion { action: 'CHECK_VERSION'; nonce: number; } export function isMsgCheckVersion(msg: MsgAny): msg is MsgCheckVersion { return msg.action === 'CHECK_VERSION'; }