Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 656 Bytes

es2015.generator.d.ts.md

File metadata and controls

18 lines (15 loc) · 656 Bytes

es2015.generator.d.ts Diffs

Index: es2015.generator.d.ts
===================================================================
--- es2015.generator.d.ts
+++ es2015.generator.d.ts
@@ -1,7 +1,7 @@
 /// <reference lib="es2015.iterable" />
 
-interface Generator<T = unknown, TReturn = any, TNext = unknown>
+interface Generator<T = unknown, TReturn = unknown, TNext = unknown>
   extends Iterator<T, TReturn, TNext> {
   // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
   next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
   return(value: TReturn): IteratorResult<T, TReturn>;