Skip to content

Commit

Permalink
feat(upgrade): upgrade to TypeScript 4.9
Browse files Browse the repository at this point in the history
  • Loading branch information
gfortaine committed Jan 2, 2023
1 parent 3680f61 commit 31dcc2b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# CHANGELOG

## 3.0.0
- Upgrade to TypeScript 4.9
- Add exports in package.json
- This package is now pure ESM. Please [read this](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).

Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@
"nyc": "^15.1.0",
"rimraf": "^3.0.2",
"source-map-support": "^0.5.19",
"typescript": "^4.2.4"
"typescript": "^4.9.4"
}
}
2 changes: 1 addition & 1 deletion src/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface EventSourceMessage {
*/
export async function getBytes(stream: ReadableStream<Uint8Array>, onChunk: (arr: Uint8Array) => void) {
const reader = stream.getReader();
let result: ReadableStreamDefaultReadResult<Uint8Array>;
let result: ReadableStreamReadResult<Uint8Array>;
while (!(result = await reader.read()).done) {
onChunk(result.value);
}
Expand Down

0 comments on commit 31dcc2b

Please sign in to comment.