How to write terminal launch code in hello-world extension

I need to write a menu contribution button which launched the terminal with some command to execute. I have forked the hello-world-extension code and I am editing that code to add Terminal related code. But while compiling it gives typescript errors.

[original thread by dhananjay harel]

please file an isseu about compilation errors

please check discussions here on how to create terminal and send a command: