Попробуйте приведенный ниже код, я проверил его в моем файле сценария типа
namespace Test {
export class Test1 {
static xyz(xyz: any) {
throw new Error("Method not implemented.");
}
xyz:string = "XYZ";
}
export class Test2 {
abc:string = "ABC";
}
}
// Use this to create an object and access the methods and variables, it works for me
let test1 = new Test.Test1;
console.log(test1.xyz);
Дайте мне знать, если это не сработает для вас.