10 مستودعات
Utilities for modifying object structures by adding, removing, or restricting keys at the type level.
Distinct from Schema Key Exclusions: Candidates focus on runtime schema exclusions or UI mappings rather than TypeScript type transformation.
Explore 10 awesome GitHub repositories matching programming languages & runtimes · Object Type Transformations. 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
Removes properties from a type based on a specified condition.
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 for deep merging, patching, and reshaping complex object structures at the type level.
هذه مكتبة أنواع مساعدة لـ TypeScript توفر أسماء مستعارة للأنواع المتقدمة وأنواعاً معينة لتحويلات الكائنات والاتحادات المعقدة. تنفذ أدوات متخصصة لإنشاء أنواع اسمية ذات علامة تجارية، واستخراج بيانات تعريف النوع، وإجراء عمليات المجموعة على أنواع الاتحاد. يتميز المشروع بمجموعة أدوات لتحويلات الكائنات العودية، مما يسمح بتطبيق قيود الخصائص مثل حالة القراءة فقط أو الحالة الاختيارية عبر هياكل متداخلة بعمق. كما يوفر نظاماً لحساب التقاطعات، والفروق، والمكملات بين أنواع الاتحاد لمحاكاة منطق المجموعة الرياضي. تغطي المكتبة مجموعة واسعة من قدرات نظام النوع، بما في ذلك تصفية خصائص الكائن، ومقارنة الشكل، واستخراج منشئي الفئات وأنواع حل الوعود. تتضمن بالإضافة إلى ذلك أدوات مساعدة للتحقق من القيمة، مثل اكتشاف القيم الزائفة أو الفارغة وتحديد الأنواع البدائية.
Provides a toolkit for applying property constraints like read-only or optional status to deeply nested object structures.
هذا المشروع عبارة عن دليل شامل ومورد تعليمي للغة TypeScript. يغطي المبادئ الأساسية للغة، بما في ذلك نظام الأنواع الهيكلي، وتحليل الأنواع الساكن، وعملية تحويل ملفات المصدر المكتوبة بأنواع إلى JavaScript. تفصل المادة كيفية نمذجة البيانات المعقدة ومنطق الأنواع القابل لإعادة الاستخدام باستخدام الأنواع العامة (generics)، والأنواع الشرطية، والأنواع المعينة. كما يشرح استخدام ملفات الإعلان لتوفير سلامة الأنواع لمكتبات JavaScript الخارجية ودمج فحص الأنواع في مشاريع JavaScript الحالية عبر تعليقات JSDoc. يمتد نطاق المحتوى إلى أنماط البرمجة كائنية التوجه، ومعالجة DOM، وتكوين سلوكيات المترجم. يتضمن توجيهاً حول إدارة قابلية التشغيل البيني للوحدات، وإعداد خطوط أنابيب البناء، واستخدام ذكاء المحرر لتحسين إنتاجية المطور.
Details how to modify property names during type transformation using template literals and conditional types.
Mapperly is a C# source generator used for high-performance object-to-object mapping in .NET. It functions as a compile-time mapping library that produces the necessary transformation code during the build process, eliminating the need for runtime reflection when converting between domain models and data transfer objects. The tool distinguishes itself by providing type-safe diagnostic validation and strict mapping enforcement, emitting warnings for unmapped properties at compile time. It includes specialized capabilities for circular reference handling and deep cloning to maintain object iden
Provides automated code generation for transferring data between different .NET object types, interfaces, and generics.
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
Provides tools for recursively applying property modifiers like optionality and read-only status to nested structures.
msgspec is a high-performance data modeling, serialization, and schema validation toolkit for Python. It serves as a type-safe serialization framework that integrates schema enforcement and data parsing into a single pass, functioning as both a data serialization library and a schema validation system based on standard Python type annotations. The project distinguishes itself through high-performance structural primitives, including compilation-based routine generation and zero-copy buffer parsing. It optimizes memory usage via garbage collection-aware layouts and reduces processing overhead
Transforms input objects into specified types by extracting attributes from models or coercing keys.
Jackson-databind is a Java serialization framework and JSON data binding library used to convert Java objects to JSON and vice versa. It functions as a JSON streaming API that generates and parses content as a sequence of tokens, and as a hierarchical data tree mapper that reads data into a node structure for dynamic modification without predefined classes. The project provides a structured mapping process to bind data to objects, allowing for the transformation of complex Java objects into data formats and the reconstruction of objects from those formats. It supports custom data format mappi
Transforms objects between compatible types using internal intermediate representations.
Hotscript is a comprehensive suite of composable utilities designed for performing structural transformations and mathematical operations within the TypeScript type system. It serves as a type-level manipulation library that provides a set of higher-order functions to map, filter, and reduce the structure of type definitions. The project focuses on type-level programming by implementing reusable logic and calculations directly within types. This includes the ability to create custom type functions, implement type-level pattern matching, and compose sequences of transformations where each oper
Allows programmatically modifying deeply nested object structures by renaming keys or changing property types recursively.
This library provides a framework for defining typed, immutable data structures in PHP. It enables developers to construct structured objects from raw input arrays, ensuring consistent data shapes and schema integrity across different layers of an application. By enforcing strict property types and validation rules during instantiation, the library prevents invalid data states and simplifies the handling of complex information. The project distinguishes itself through its use of attribute-driven metadata, which allows for property renaming, custom validation, and serialization logic directly
Automatically transforms nested arrays and objects into defined class instances to maintain deep type safety across complex data hierarchies.