Skip to content

Commit

Permalink
fix: update signature of end to comply with update node types definit…
Browse files Browse the repository at this point in the history
…ion (#311)

* fix: update signature of end to comply with update node types definition

* linter fix

* remove old definition
  • Loading branch information
ddelgrosso1 authored Feb 14, 2022
1 parent ce7aa19 commit 79e6fbd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/resource-stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {Transform} from 'stream';
import {Transform, Writable} from 'stream';
import {ParsedArguments} from './';

interface ResourceEvents<T> {
Expand Down Expand Up @@ -48,7 +48,9 @@ export class ResourceStream<T> extends Transform implements ResourceEvents<T> {
this._resultsToSend = args.maxResults === -1 ? Infinity : args.maxResults!;
}
/* eslint-disable @typescript-eslint/no-explicit-any */
end(...args: any[]) {
end(
...args: any[]
): ReturnType<Writable['end']> extends Writable ? this : void {
this._ended = true;
return super.end(...args);
}
Expand Down

0 comments on commit 79e6fbd

Please sign in to comment.