EasyEnv
TypeScript
शुरुआतीपाठ 16 / 1830 मिनट · हैंड्स-ऑन

Mapped and Conditional Types

TypeScript कोर्स का हिस्सा

अभी-अभी आपने जो यूटिलिटी टाइप इस्तेमाल किए (Partial, Pick, Record, ReturnType), वे सब भाषा की दो सुविधाओं से बने हैं: किसी ऑब्जेक्ट की कुंजियों और मानों को बदलने के लिए मैप्ड टाइप (mapped type), और किसी टाइप को देखकर विकल्पों में से एक चुनने के लिए कंडीशनल टाइप (conditional type)। जिस दिन आप ये दोनों पढ़ लेना सीख जाते हैं, उस दिन से मानक लाइब्रेरी जादू लगनी बंद हो जाती है।

keyof T का मतलब है: T की सारी प्रॉपर्टी के नाम, स्ट्रिंग लिटरल के यूनियन के रूप में ...

असली माहौल में TypeScript Mapped and Conditional Types सीखना चाहते हैं?

नीचे क्लिक करें, TypeScript के साथ तैयार एक Linux मशीन पाएँ, और AI ट्यूटर के साथ Mapped and Conditional Types पर हाथ-से-काम करें जो आपका कोड जानता है।

यह पाठ शुरू करेंMapped and Conditional Types

आप क्या सीखेंगे

  • Keyof operator
  • Mapped types syntax
  • Key remapping with as
  • Conditional types
  • Infer keyword
  • Distributive conditional types

यह पाठ अपनी भाषा में पढ़ें

इस कोर्स के सभी पाठ

18 पाठ
  1. 1Hello, TypeScript20 मिनट
  2. 2Type Basics25 मिनट
  3. 3Arrays and Tuples25 मिनट
  4. 4Object Types and Interfaces25 मिनट
  5. 5Functions25 मिनट
  6. 6Union and Literal Types25 मिनट
  7. 7Type Narrowing30 मिनट
  8. 8Type Aliases vs Interfaces20 मिनट
  9. 9Optional, Readonly, and Nullable25 मिनट
  10. 10Enums20 मिनट
  11. 11Generics30 मिनट
  12. 12Classes25 मिनट
  13. 13Inheritance and Abstract Classes25 मिनट
  14. 14Modules25 मिनट
  15. 15Utility Types30 मिनट
  16. 16Mapped and Conditional Types30 मिनट
  17. 17Declaration Files and Libraries25 मिनट
  18. 18tsconfig and the Compiler30 मिनट

अन्य कोर्स देखें

Mapped and Conditional Types - TypeScript (Hindi) | Engineering Courses