...
TypeScript functions calls from in event handlers, in the visual designer or SCL maintenance (starting with the "$" sign) look just like JavaScript function calls
...
Remember that the TypeScript file extension is ".ts" instead of the JavaScript ".js".
For an a TypeScript function example, look at the "onCustomerSalesrepValueChanged.ts" in the "sports-webui/ClientLogic" directory.