TypeScript - Propertie includes a class -


टाइपस्क्रिप्ट में, निम्न वर्ग के तहत शो के रूप में:

Oferta.ts:

< पूर्व> मॉड्यूल ऑफ़रटस {निर्यात वर्ग कीर्टा {VMVivienda: ofertas.Vivienda (); कन्स्ट्रक्टर () {this.VMVivienda = नया ऑफ़रट्स। विविन्दा (); }}}

Vivienda.ts

  मॉड्यूल ऑफ़रटस {निर्यात वर्ग विविंड्डा {viviendaID: number; निर्माता () {this.viviendaID = 0; }}}  

संकलन करते समय, कंसोल त्रुटि फेंकता है:

त्रुटि TS0294: संपत्ति 'विविंडैंड' प्रकार के प्रकार पर मौजूद नहीं है 'typeof ऑररेट्स '

जोड़ /// & lt; संदर्भ पथ =' vivienda Ts '/ & gt; से oferta.ts

पर क्लिक करें

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -