Skip to content

Commit addc50f

Browse files
committed
style: respond to automated code review
1 parent b69dc8d commit addc50f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/FetchWorkerTool.worker.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ import {AssetQueueOptions} from './HostQueues';
1010
import {scratchFetch} from './scratchFetch';
1111

1212
interface JobMessage {
13-
id: string,
13+
id: string;
1414
url: string;
1515
options: RequestInit | undefined;
1616
}
1717

1818
interface CompletionMessage {
19-
id: string,
19+
id: string;
2020
buffer?: ArrayBuffer | null;
2121
error?: string;
2222
}
@@ -73,7 +73,7 @@ const onMessage = async ({data: job}: MessageEvent<JobMessage>) => {
7373
try {
7474
const response = await scratchFetch(job.url, job.options, {queueOptions: AssetQueueOptions});
7575

76-
const result:CompletionMessage = {id: job.id};
76+
const result: CompletionMessage = {id: job.id};
7777
if (response.ok) {
7878
result.buffer = await response.arrayBuffer();
7979
} else if (response.status === 404) {

tsconfig.test.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
/* Visit https://aka.ms/tsconfig to read more about this file */
66

77
/* Modules */
8-
"isolatedModules": true,
8+
"isolatedModules": true, // for ts-jest
9+
"module": "CommonJS",
910
"types": ["jest", "./src/types.d.ts"],
1011
}
1112
}

0 commit comments

Comments
 (0)