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
2020SOFTWARE.
2121***************************************************************************** */
2222
23+ /// <reference lib="es2018.asynciterable" />
24+
2325/**
2426 * Common interfaces and types
2527 */
@@ -285,10 +287,12 @@ declare namespace ICloud {
285287 data : string
286288 json ?: any
287289 }
290+
288291 interface AsyncIterator < T > {
289292 next ( value ?: any ) : Promise < IteratorResult < T > > ;
290293 return ?( value ?: any ) : Promise < IteratorResult < T > > ;
291294 throw ?( e ?: any ) : Promise < IteratorResult < T > > ;
295+ [ Symbol . asyncIterator ] ( ) : AsyncIterableIterator < T > ;
292296 }
293297 interface ICloudAIStreamResult {
294298 textStream : AsyncIterator < string >
You can’t perform that action at this time.
0 commit comments