Skip to content

Commit

Permalink
Undo more formatting changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkrodrigues committed Sep 20, 2024
1 parent adc695a commit 7bd410b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions new-log-viewer/src/typings/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ enum WORKER_REQ_CODE {

enum WORKER_RESP_CODE {
LOG_FILE_INFO = "logFileInfo",
NOTIFICATION = "notification",
PAGE_DATA = "pageData",
VIEW_INFO = "viewInfo",
NOTIFICATION = "notification",
}

type WorkerReqMap = {
Expand All @@ -74,10 +74,6 @@ type WorkerRespMap = {
fileName: string,
numEvents: number,
},
[WORKER_RESP_CODE.NOTIFICATION]: {
logLevel: LOG_LEVEL,
message: string,
},
[WORKER_RESP_CODE.PAGE_DATA]: {
logs: string,
beginLineNumToLogEventNum: BeginLineNumToLogEventNumMap,
Expand All @@ -87,7 +83,11 @@ type WorkerRespMap = {
firstLogEventNumPerPage: number[],
lastLogEventNumPerPage: number[],
numFilteredEvents: number,
}
},
[WORKER_RESP_CODE.NOTIFICATION]: {
logLevel: LOG_LEVEL,
message: string
},
};

type WorkerReq<T extends WORKER_REQ_CODE> = T extends keyof WorkerReqMap ?
Expand Down

0 comments on commit 7bd410b

Please sign in to comment.