Skip to content

Commit

Permalink
js-sys: fix typescript_type for AsyncIterator (#2825)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshyrobot committed Mar 2, 2022
1 parent 26fee7f commit a1520c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/js-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Promise<any>>")]
#[wasm_bindgen(is_type_of = Iterator::looks_like_iterator, typescript_type = "AsyncIterator<any>")]
pub type AsyncIterator;

/// The `next()` method always has to return a Promise which resolves to an object
Expand Down

0 comments on commit a1520c4

Please sign in to comment.