Skip to content

Commit

Permalink
fix: fix compiling for @types/node@17
Browse files Browse the repository at this point in the history
fixes #65
  • Loading branch information
fent committed Jan 9, 2022
1 parent a7cb33d commit f363cae
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 25 deletions.
30 changes: 7 additions & 23 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 @@ -28,7 +28,7 @@
},
"devDependencies": {
"@types/mocha": "^7.0.0",
"@types/node": "^14.14.9",
"@types/node": "^17.0.8",
"@types/sinon": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^4.8.2",
"@typescript-eslint/parser": "^4.8.2",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace Miniget {
export interface Stream extends PassThrough {
abort: (err?: Error) => void;
aborted: boolean;
destroy: (err?: Error) => void;
destroy: (err?: Error) => this;
destroyed: boolean;
text: () => Promise<string>;
on(event: 'reconnect', listener: (attempt: number, err?: Miniget.MinigetError) => void): this;
Expand Down

0 comments on commit f363cae

Please sign in to comment.