मैं दो टाइपप्रति फ़ाइलें बनाया A.tsऔर 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
ठीक। यह A.js और TestA.js बनाता है।tsc TestA.ts -e
एनजी। RefenceError:Aपरिभाषित नहीं हैtsc A.ts TestA.ts -e
भी एक ही त्रुटि को जन्म देती है
कहाँ मैं गलत जाते हैं?













