Zrobiłem dwa maszynopis pliki A.tsi TestA.ts.
A.ts
class A {
constructor( private name : string ){}
disp(){ console.log( this.name ); }
}
TestA.ts
/// <reference path=A.ts/>
var a1 = new A( Jun );
a1.disp();
tsc TestA.ts
OK. To sprawia, że A.js i TestA.js.tsc TestA.ts -e
NG. „RefenceError:Anie jest zdefiniowana”tsc A.ts TestA.ts -e
również podnosi ten sam błąd
Gdzie mam pójść źle?













