Fix TypeScript output for fields

This commit is contained in:
Alex Crichton
2019-05-30 10:56:59 -07:00
parent ff0a50e31e
commit cba1e70077
2 changed files with 45 additions and 4 deletions

View File

@ -51,7 +51,7 @@ pub struct Js2Rust<'a, 'b: 'a> {
/// Typescript expression representing the type of the return value of this
/// function.
ret_ty: String,
pub ret_ty: String,
/// Expression used to generate the return value. The string "RET" in this
/// expression is replaced with the actual wasm invocation eventually.