mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-15 22:11:23 +00:00
Allow web-sys to emit correct typescript declarations from webidl (#1998)
* Update to emit typescript names * Update to use NamedAnyref * Update incoming / outgoing * Remove added space * Remove comment * Add basic typescript tests for web-sys
This commit is contained in:
@ -1238,6 +1238,7 @@ fn adapter2ts(ty: &AdapterType, dst: &mut String) {
|
||||
adapter2ts(ty, dst);
|
||||
dst.push_str(" | undefined");
|
||||
}
|
||||
AdapterType::NamedAnyref(name) => dst.push_str(name),
|
||||
AdapterType::Struct(name) => dst.push_str(name),
|
||||
AdapterType::Function => dst.push_str("any"),
|
||||
}
|
||||
|
Reference in New Issue
Block a user