Post message to service worker to sendHeartbeat

This commit is contained in:
Sebastian Velez
2023-08-28 19:01:47 -05:00
parent 7d4fb6b90f
commit 3a430d66ce
5 changed files with 23 additions and 7 deletions

View File

@@ -32,3 +32,15 @@ export interface SendHeartbeat {
project: string | null;
url: string;
}
export interface ProjectDetails {
category: string;
editor: string;
language: string;
project: string;
}
export interface PostHeartbeatMessage {
projectDetails?: ProjectDetails;
recordHeartbeat: boolean;
}