File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
20
SOFTWARE.
21
21
***************************************************************************** */
22
22
23
+ /// <reference lib="es2018.asynciterable" />
24
+
23
25
/**
24
26
* Common interfaces and types
25
27
*/
@@ -285,10 +287,12 @@ declare namespace ICloud {
285
287
data : string
286
288
json ?: any
287
289
}
290
+
288
291
interface AsyncIterator < T > {
289
292
next ( value ?: any ) : Promise < IteratorResult < T > > ;
290
293
return ?( value ?: any ) : Promise < IteratorResult < T > > ;
291
294
throw ?( e ?: any ) : Promise < IteratorResult < T > > ;
295
+ [ Symbol . asyncIterator ] ( ) : AsyncIterableIterator < T > ;
292
296
}
293
297
interface ICloudAIStreamResult {
294
298
textStream : AsyncIterator < string >
You can’t perform that action at this time.
0 commit comments