3 مستودعات
Utilities to derive the type of elements contained within an array or tuple.
Distinct from Array Element: Focuses on extracting the type rather than defining the expected homogeneity of the array.
Explore 3 awesome GitHub repositories matching software engineering & architecture · Element Type Extraction. Refine with filters or upvote what's useful.
type-fest is a library of reusable utility types for performing complex transformations and validations on objects, arrays, strings, and numeric ranges in TypeScript. It provides a collection of type definitions designed to handle advanced structural changes and constraints. The project distinguishes itself by offering specialized logic for string literal processing, such as casing transformations and pattern-based modifications, and type-level arithmetic for calculating numeric ranges and absolute values. It also includes utilities for enforcing deep immutability, ensuring union mutual exclu
Provides a utility for retrieving the type of elements within an array or tuple.
هذه مكتبة أنواع مساعدة لـ TypeScript توفر أسماء مستعارة للأنواع المتقدمة وأنواعاً معينة لتحويلات الكائنات والاتحادات المعقدة. تنفذ أدوات متخصصة لإنشاء أنواع اسمية ذات علامة تجارية، واستخراج بيانات تعريف النوع، وإجراء عمليات المجموعة على أنواع الاتحاد. يتميز المشروع بمجموعة أدوات لتحويلات الكائنات العودية، مما يسمح بتطبيق قيود الخصائص مثل حالة القراءة فقط أو الحالة الاختيارية عبر هياكل متداخلة بعمق. كما يوفر نظاماً لحساب التقاطعات، والفروق، والمكملات بين أنواع الاتحاد لمحاكاة منطق المجموعة الرياضي. تغطي المكتبة مجموعة واسعة من قدرات نظام النوع، بما في ذلك تصفية خصائص الكائن، ومقارنة الشكل، واستخراج منشئي الفئات وأنواع حل الوعود. تتضمن بالإضافة إلى ذلك أدوات مساعدة للتحقق من القيمة، مثل اكتشاف القيم الزائفة أو الفارغة وتحديد الأنواع البدائية.
Derives a union of all value types contained within an object, tuple, or array.
ts-essentials is a comprehensive toolkit of utility types and libraries for TypeScript, providing advanced primitives for recursive structural transformations, runtime assertions, and type guards. It serves as a utility library for performing complex type-level programming to ensure stronger type safety and reduce boilerplate. The project distinguishes itself through a specialized set of tools for deep object manipulation, such as recursively applying read-only or optional modifiers across nested hierarchies. It also provides a dedicated set of strict type constraints to ensure data structure
Resolves the core data type by returning element types for arrays, return types for functions, or property values for objects.