Ich habe zwei Typoskript Dateien A.tsund 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. Es macht A.js und TestA.js.tsc TestA.ts -e
NG. „RefenceError:Anicht definiert ist “tsc A.ts TestA.ts -e
Auch stellt sich die gleichen Fehler
Wo finde ich falsch?













