Converting to typescript.

Support for comments inside function parameters definition.