Skip to content

Commit a536bca

Browse files
committed
Upgrade to TypeScript 4.
1 parent a544ba0 commit a536bca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

asynciterator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ export class TransformIterator<S, D = S> extends BufferedIterator<D> {
12411241
}
12421242

12431243
function destinationEmitError<S>(this: InternalSource<S>, error: Error) {
1244-
this._destination.emit('error', error);
1244+
this._destination!.emit('error', error);
12451245
}
12461246
function destinationCloseWhenDone<S>(this: InternalSource<S>) {
12471247
(this._destination as any)._closeWhenDone();
@@ -1985,4 +1985,4 @@ type SourceExpression<T> =
19851985
(() => MaybePromise<AsyncIterator<T>>);
19861986

19871987
type InternalSource<T> =
1988-
AsyncIterator<T> & { _destination: AsyncIterator<any> };
1988+
AsyncIterator<T> & { _destination?: AsyncIterator<any> };

0 commit comments

Comments
 (0)