I\'m pretty new to java-/type-script and I\'ve some troubles grasping their concepts. I would like to call a method of another class. However, I\'ve been unsuccessful s
calcSomeThing is a non-static method/function. Create an instance of Foo to be able to call it:
calcSomeThing
Foo
let foo:Foo = new Foo(); let result:number = foo.calcSomeThing( parameter );
Never use var in Typescript - let is your friend.
var
let