Typescript functions

From wikinotes

Type Annotations

function toInt(msg: string): number {
    return parseInt(msg);
}