ما هي type-vs-interface؟
يُستخدم عند تحديد أنواع الكائنات. يُستخدم عند الاختيار بين النوع والواجهة. استخدم عند تمديد الأنواع. المصدر: marius-townhouse/effective-typescript-skills.
يُستخدم عند تحديد أنواع الكائنات. يُستخدم عند الاختيار بين النوع والواجهة. استخدم عند تمديد الأنواع.
ثبّت مهارة الذكاء الاصطناعي type-vs-interface بسرعة في بيئة التطوير لديك عبر سطر الأوامر
المصدر: marius-townhouse/effective-typescript-skills.
Both type and interface can define object types, but they have different capabilities. Understanding these differences helps you choose the right tool and write consistent code.
| Object type (API response, props) | interface | | Union type | type | | Tuple type | type | | Function type | type | | Mapped type | type | | Primitive alias | type | | Library types meant to be extended | interface |
This is how TypeScript extends standard library types across ES versions.
يُستخدم عند تحديد أنواع الكائنات. يُستخدم عند الاختيار بين النوع والواجهة. استخدم عند تمديد الأنواع. المصدر: marius-townhouse/effective-typescript-skills.
حقول وأوامر مستقرة للاقتباس في أنظمة الذكاء الاصطناعي والبحث.
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill type-vs-interfaceBrowse more skills from marius-townhouse/effective-typescript-skills
يُستخدم عند تحديد أنواع الكائنات. يُستخدم عند الاختيار بين النوع والواجهة. استخدم عند تمديد الأنواع. المصدر: marius-townhouse/effective-typescript-skills.
افتح الطرفية أو أداة سطر الأوامر لديك مثل Terminal أو iTerm أو Windows Terminal انسخ ونفّذ هذا الأمر: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill type-vs-interface بعد التثبيت، سيتم إعداد المهارة تلقائيا في بيئة البرمجة بالذكاء الاصطناعي لديك وتصبح جاهزة للاستخدام في Claude Code أو Cursor أو OpenClaw
https://github.com/marius-townhouse/effective-typescript-skills