Flag free() as returning void

This commit is contained in:
Alex Crichton 2018-01-30 07:37:25 -08:00
parent 5098f97e7d
commit 89c8621426

View File

@ -236,7 +236,7 @@ impl<'a> Js<'a> {
wasm.{}(ptr);
}}
", s.free_function()));
ts_dst.push_str("free();\n");
ts_dst.push_str("free(): void;\n");
for function in s.functions.iter() {
let (js, ts) = self.generate_function(