Start testing TypeScript output on CI

This commit starts to add some simple tests for our TypeScript output of
the wasm-bindgen CLI, currently just running `tsc` to make sure syntax
looks good and types are emitted as expected. This'll hopefully be able
to get expanded over time with bug reports as they come in as well as
ensure that we don't regress anything in egregious manners!

Closes #922
This commit is contained in:
Alex Crichton
2019-03-05 08:33:27 -08:00
parent f161717afe
commit 235bc7c889
9 changed files with 96 additions and 2 deletions

View File

@ -0,0 +1,20 @@
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub fn greet(_: &str) {}
#[wasm_bindgen]
struct A {
}
#[wasm_bindgen]
impl A {
#[wasm_bindgen(constructor)]
pub fn new() -> A {
A {}
}
pub fn other() {}
pub fn foo(&self) {}
}