Skip to content

Latest commit

 

History

History
21 lines (19 loc) · 684 Bytes

es2018.asynciterable.d.ts.md

File metadata and controls

21 lines (19 loc) · 684 Bytes

es2018.asynciterable.d.ts Diffs

Index: es2018.asynciterable.d.ts
===================================================================
--- es2018.asynciterable.d.ts
+++ es2018.asynciterable.d.ts
@@ -7,10 +7,9 @@
    * the for-await-of statement.
    */
   readonly asyncIterator: unique symbol;
 }
-
-interface AsyncIterator<T, TReturn = any, TNext = undefined> {
+interface AsyncIterator<T, TReturn = unknown, TNext = undefined> {
   // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
   next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
   return?(
     value?: TReturn | PromiseLike<TReturn>,