what happens to interface when compiling typescript to JavaScript
and how to check for them in runtime?