TypeScript एररएरर
TS1202TS1202 — Module में Import Assignment की अनुमति नहीं
`import = require()` syntax ES module में उपयोग नहीं किया जा सकता।
nodebrowserdenobun
विवरण देखें TS2684फ़ंक्शन का this context अपेक्षित this टाइप से मेल नहीं खाता।
एक फ़ंक्शन विशिष्ट this टाइप घोषित करता है, लेकिन उसे ऐसे संदर्भ में उपयोग किया जा रहा है जहाँ this का मान अलग होगा। callback असाइनमेंट और मेथड extraction आमतौर पर यह मिसमैच उत्पन्न करते हैं।
this context ठीक करने के लिए .bind(this) उपयोग करें। regular function की जगह arrow function उपयोग करें। सुनिश्चित करें कि फ़ंक्शन सही this context के साथ कॉल हो।
TS1202`import = require()` syntax ES module में उपयोग नहीं किया जा सकता।
TS1046एक `await` expression या अन्य top-level construct के लिए file का module होना आवश्यक है।
TS2305निर्दिष्ट export referenced module में मौजूद नहीं है।
TS4055Exported function का return type किसी private या non-exported type को reference करता है।
TS2344एक type argument, generic type parameter द्वारा निर्दिष्ट constraint को पूरा नहीं करता।
TS2459Destructured import में ऐसे member का reference है जो module से export नहीं है।