·type-vs-interface

يُستخدم عند تحديد أنواع الكائنات. يُستخدم عند الاختيار بين النوع والواجهة. استخدم عند تمديد الأنواع.

4التثبيتات·0الرائج·@marius-townhouse

التثبيت

$npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill type-vs-interface

كيفية تثبيت type-vs-interface

ثبّت مهارة الذكاء الاصطناعي type-vs-interface بسرعة في بيئة التطوير لديك عبر سطر الأوامر

  1. افتح الطرفية: افتح الطرفية أو أداة سطر الأوامر لديك مثل Terminal أو iTerm أو Windows Terminal
  2. نفّذ أمر التثبيت: انسخ ونفّذ هذا الأمر: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill type-vs-interface
  3. تحقق من التثبيت: بعد التثبيت، سيتم إعداد المهارة تلقائيا في بيئة البرمجة بالذكاء الاصطناعي لديك وتصبح جاهزة للاستخدام في Claude Code أو Cursor أو OpenClaw

المصدر: 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-interface
الفئة
</>أدوات التطوير
موثق
أول ظهور
2026-02-05
آخر تحديث
2026-03-11

Browse more skills from marius-townhouse/effective-typescript-skills

إجابات سريعة

ما هي type-vs-interface؟

يُستخدم عند تحديد أنواع الكائنات. يُستخدم عند الاختيار بين النوع والواجهة. استخدم عند تمديد الأنواع. المصدر: marius-townhouse/effective-typescript-skills.

كيف أثبّت type-vs-interface؟

افتح الطرفية أو أداة سطر الأوامر لديك مثل 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