We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c251db commit bbd700fCopy full SHA for bbd700f
types/wx/lib.wx.cloud.d.ts
@@ -20,6 +20,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
SOFTWARE.
21
***************************************************************************** */
22
23
+/// <reference lib="es2018.asynciterable" />
24
+
25
/**
26
* Common interfaces and types
27
*/
@@ -285,10 +287,12 @@ declare namespace ICloud {
285
287
data: string
286
288
json?: any
289
}
290
291
interface AsyncIterator<T> {
292
next(value?: any): Promise<IteratorResult<T>>;
293
return?(value?: any): Promise<IteratorResult<T>>;
294
throw?(e?: any): Promise<IteratorResult<T>>;
295
+ [Symbol.asyncIterator](): AsyncIterableIterator<T>;
296
297
interface ICloudAIStreamResult {
298
textStream: AsyncIterator<string>
0 commit comments