Skip to content

Commit 45ac3cf

Browse files
committed
Enable typescript strict checks
1 parent 1589ec1 commit 45ac3cf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export function fetchEventSource(input: RequestInfo, {
110110

111111
await onopen(response);
112112

113-
await getBytes(response.body, getLines(getMessages(id => {
113+
await getBytes(response.body!, getLines(getMessages(id => {
114114
if (id) {
115115
// store the id and send it back on the next retry:
116116
headers[LastEventId] = id;

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
"compilerOptions": {
33
"target": "ES2017",
44
"module": "commonjs",
5+
"esModuleInterop": true,
56
"forceConsistentCasingInFileNames": true,
67
"rootDir": "src",
78
"outDir": "lib/cjs",
89
"declaration": true,
910
"sourceMap": true,
11+
"skipLibCheck": true,
12+
"strict": true,
1013
"removeComments": true,
11-
"noImplicitAny": false,
1214
"noFallthroughCasesInSwitch": true,
1315
"noUnusedLocals": true,
1416
"noUnusedParameters": true,

0 commit comments

Comments
 (0)