8 مستودعات
Defining the expected data type for every element within a list or array.
Distinct from Type Specifications: Distinct from Type Specifications by focusing specifically on the homogeneity of array elements.
Explore 8 awesome GitHub repositories matching software engineering & architecture · Array Element. 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.
Arktype is a TypeScript runtime validation library and schema orchestrator. It synchronizes TypeScript types with runtime data validation, allowing users to define type-safe schemas that ensure unknown data adheres to specific structures during application execution. The project distinguishes itself by using set-theory type analysis to determine intersections and subtype compatibility, alongside JIT-compiled validation functions for optimized performance. It supports advanced type modeling through branded type constraints, recursive alias resolution, and the ability to generate runtime valida
Extracts the specific type of a value associated with a given key from an object schema.
ts-toolbelt is a collection of specialized utilities for manipulating and validating TypeScript types. It provides a toolkit for performing complex transformations on objects, unions, and functions to enforce strict data consistency at compile time. The library features dedicated transformers for function types, including utilities for currying, composition, and signature extraction. It also includes an object type manipulator for deep merging, patching, and reshaping complex structures. The capability surface extends to literal string processing, type-level arithmetic, and tuple operations.
Provides utilities to derive the specific type of a value associated with a given key from an object, array, or union.
TypeSpec is a language for defining cloud API shapes and generating OpenAPI, JSON Schema, and client/server code from a single source of truth. It functions as a protocol-agnostic API designer that models REST, gRPC, and other API protocols using a unified, extensible syntax, with a decorator-based metadata system for attaching metadata, validation rules, and lifecycle visibility to API models and operations. The compiler produces OpenAPI 3.0 specifications and other artifacts, and the tool supports declaring API versions and tracking changes to models, properties, and operations across releas
Declares arrays where every element must be of the same specified type using shorthand syntax.
هذه مكتبة أنواع مساعدة لـ TypeScript توفر أسماء مستعارة للأنواع المتقدمة وأنواعاً معينة لتحويلات الكائنات والاتحادات المعقدة. تنفذ أدوات متخصصة لإنشاء أنواع اسمية ذات علامة تجارية، واستخراج بيانات تعريف النوع، وإجراء عمليات المجموعة على أنواع الاتحاد. يتميز المشروع بمجموعة أدوات لتحويلات الكائنات العودية، مما يسمح بتطبيق قيود الخصائص مثل حالة القراءة فقط أو الحالة الاختيارية عبر هياكل متداخلة بعمق. كما يوفر نظاماً لحساب التقاطعات، والفروق، والمكملات بين أنواع الاتحاد لمحاكاة منطق المجموعة الرياضي. تغطي المكتبة مجموعة واسعة من قدرات نظام النوع، بما في ذلك تصفية خصائص الكائن، ومقارنة الشكل، واستخراج منشئي الفئات وأنواع حل الوعود. تتضمن بالإضافة إلى ذلك أدوات مساعدة للتحقق من القيمة، مثل اكتشاف القيم الزائفة أو الفارغة وتحديد الأنواع البدائية.
Derives a union of all value types contained within an object, tuple, or array.
هذا المشروع عبارة عن دليل شامل ومورد تعليمي للغة TypeScript. يغطي المبادئ الأساسية للغة، بما في ذلك نظام الأنواع الهيكلي، وتحليل الأنواع الساكن، وعملية تحويل ملفات المصدر المكتوبة بأنواع إلى JavaScript. تفصل المادة كيفية نمذجة البيانات المعقدة ومنطق الأنواع القابل لإعادة الاستخدام باستخدام الأنواع العامة (generics)، والأنواع الشرطية، والأنواع المعينة. كما يشرح استخدام ملفات الإعلان لتوفير سلامة الأنواع لمكتبات JavaScript الخارجية ودمج فحص الأنواع في مشاريع JavaScript الحالية عبر تعليقات JSDoc. يمتد نطاق المحتوى إلى أنماط البرمجة كائنية التوجه، ومعالجة DOM، وتكوين سلوكيات المترجم. يتضمن توجيهاً حول إدارة قابلية التشغيل البيني للوحدات، وإعداد خطوط أنابيب البناء، واستخدام ذكاء المحرر لتحسين إنتاجية المطور.
Explains how to extract specific property types from an object using keyof operators and indexed access types.
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.
jscamp is a full-stack web development and education project focused on mastering JavaScript, TypeScript, and AI integration. It provides a structured curriculum and interactive exercises covering language fundamentals, frontend engineering, and backend API development. The project distinguishes itself through the implementation of autonomous AI agents capable of complex task automation, such as modifying files, managing servers, and executing API calls. It includes advanced AI development tools for conversational querying, real-time code suggestions, and automated repository analysis to gene
Defines expected data types for all elements in a list to ensure type-safe iteration.