I've run my code through tsc, and have the following output for a constructor function accepting a single string parameter:
function Session(endpoint) {
var _this = this;
_super.call(this);
this.endpoint = endpoint;
There's no check that the parameter is defined or that typeof(endpoint) === "string".
Are these checks only made at compile time? I originally had some sanity checks in the constructor to ensure that the value was correct, then deleted them because I assumed tsc would output them. Type declarations will certainly be useful when compiling, but I was hoping for runtime checks as well, and hoping not to have to write all that boilerplate.
Thanks.