From a1520c4e5d91e6a38003d1751d875eb6ebbf939d Mon Sep 17 00:00:00 2001 From: joshyrobot Date: Wed, 2 Mar 2022 08:07:03 -0700 Subject: [PATCH] js-sys: fix `typescript_type` for `AsyncIterator` (#2825) --- crates/js-sys/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/js-sys/src/lib.rs b/crates/js-sys/src/lib.rs index ba300b684ca..2972376bd22 100644 --- a/crates/js-sys/src/lib.rs +++ b/crates/js-sys/src/lib.rs @@ -1872,7 +1872,7 @@ extern "C" { /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of) #[derive(Clone, Debug)] - #[wasm_bindgen(is_type_of = Iterator::looks_like_iterator, typescript_type = "Iterator>")] + #[wasm_bindgen(is_type_of = Iterator::looks_like_iterator, typescript_type = "AsyncIterator")] pub type AsyncIterator; /// The `next()` method always has to return a Promise which resolves to an object