TypeScript
JavaScript مع أنواع تكشف الأخطاء مبكرًا.
TypeScript is JavaScript plus a type system that catches bugs before your code runs, and it is one of the most popular languages in web development. This track takes you from your first type annotation to the patterns real-world apps use every day: object types, unions and narrowing, generics, utility and mapped types, satisfies, and validating API data at runtime.
You already know JavaScript, so every lesson goes straight to what TypeScript adds, and the quizzes make sure you truly understand what the compiler does.
- الدروس
- ٢٣
- الوقت
- ٣ ساعة
- المستوى
- متوسط
دروس هذا المسار بالإنجليزية حاليًا.
- البرونز متاحة
- الفضة متاحة
- الذهب مقفلة
مستعد لإثبات نفسك؟
ثلاثة امتحانات في انتظارك: البرونز والفضة والذهب.
ما ستتمكن من فعله
- Set up a strict TypeScript project and know what tsc and Node.js each do
- Describe posts, users and API responses with precise types
- Model API states with discriminated unions and let the compiler check every case
- Write reusable generic functions and types
- Derive new types with utility, mapped and conditional types
- Validate JSON from the network so your types tell the truth
الرحلة
١ الوحدة ١Why TypeScript
What types buy you, how tsc and tsconfig work, and how Node.js runs TypeScript files.
٠ / ٣٢ الوحدة ٢Everyday types
Primitives, inference, arrays, tuples, literal types, and the difference between any and unknown.
٠ / ٤٣ الوحدة ٣Modeling objects
Describe posts, users and API payloads with interfaces, type aliases and Record.
٠ / ٤٤ الوحدة ٤Unions and narrowing
Values that can be one of several types, and how TypeScript follows your checks.
٠ / ٤٥ الوحدة ٥Generics
Write one function or type that works for many types without losing safety.
٠ / ٣٦ الوحدة ٦Advanced types in practice
Utility, mapped and conditional types, satisfies, as const, and validating JSON at runtime.
٠ / ٥