I am pretty new to typescript, but now I have a problem. I've written a function in Typescript out of every class
function someFunction(){
}
And now I wanted to call the function from another TS file and i declared it as follows:
declare function someFunction(): void;
But this won't work in the browser console I get the error
Uncaught ReferenceError: someFunction() is not defined
File one looks like:
export class SomeClass{
}
export function someFunction(){
}
File two :
///<reference path="File1.ts" />
export class SomeOtherClass{
someFunction();
}