added use/checking of the typescript-api

* New build rule to copy typescript API to the right place
* New file to check typescript api is at least good typescript.