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.
This is a TypeScript utility type library providing advanced type aliases and mapped types for complex object and union transformations. It implements specialized tools for creating branded nominal types, extracting type metadata, and performing set operations on union types. The project distinguishes itself through a toolkit for recursive object transformations, allowing for the application of property constraints like read-only or optional status across deeply nested structures. It also provides a system for computing intersections, differences, and complements between union types to simula
Provides a toolkit for applying property constraints like read-only or optional status to deeply nested object structures.
यह प्रोजेक्ट TypeScript भाषा के लिए एक व्यापक गाइड और शैक्षिक संसाधन है। यह भाषा के मूलभूत सिद्धांतों को कवर करता है, जिसमें इसका स्ट्रक्चरल टाइप सिस्टम, स्टेटिक टाइप विश्लेषण और टाइप्ड सोर्स फाइलों को JavaScript में ट्रांसपाइल करने की प्रक्रिया शामिल है। सामग्री विस्तार से बताती है कि जेनेरिक्स, कंडीशनल टाइप्स और मैप्ड टाइप्स का उपयोग करके जटिल डेटा और पुन: प्रयोज्य टाइप लॉजिक को कैसे मॉडल किया जाए। यह बाहरी JavaScript लाइब्रेरी के लिए टाइप सेफ्टी प्रदान करने के लिए डिक्लेरेशन फाइलों के उपयोग और JSDoc एनोटेशन के माध्यम से मौजूदा JavaScript प्रोजेक्ट्स में टाइप चेकिंग के एकीकरण की भी व्याख्या करती है। सामग्री का दायरा ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग पैटर्न, DOM हेरफेर और कंपाइलर व्यवहार के कॉन्फ़िगरेशन तक फैला हुआ है। इसमें मॉड्यूल इंटरऑपरेबिलिटी को प्रबंधित करने, बिल्ड पाइपलाइन सेट करने और बेहतर डेवलपर उत्पादकता के लिए एडिटर इंटेलिजेंस का उपयोग करने पर मार्गदर्शन शामिल है।
Details how to modify property names during type transformation using template literals and conditional types.
Mapperly .NET में उच्च-प्रदर्शन ऑब्जेक्ट-टू-ऑब्जेक्ट मैपिंग के लिए उपयोग किया जाने वाला एक C# सोर्स जनरेटर है। यह एक कंपाइल-टाइम मैपिंग लाइब्रेरी के रूप में कार्य करता है जो बिल्ड प्रक्रिया के दौरान आवश्यक ट्रांसफॉर्मेशन कोड तैयार करती है, जिससे डोमेन मॉडल और डेटा ट्रांसफर ऑब्जेक्ट्स के बीच रूपांतरण करते समय रनटाइम रिफ्लेक्शन की आवश्यकता समाप्त हो जाती है। यह टूल टाइप-सेफ डायग्नोस्टिक वैलिडेशन और सख्त मैपिंग प्रवर्तन प्रदान करके खुद को अलग करता है, जो कंपाइल समय पर अनमैप्ड प्रॉपर्टीज के लिए चेतावनी जारी करता है। इसमें जटिल ट्रांसफॉर्मेशन के दौरान ऑब्जेक्ट आइडेंटिटी बनाए रखने और अनंत लूप को रोकने के लिए सर्कुलर रेफरेंस हैंडलिंग और डीप क्लोनिंग के लिए विशेष क्षमताएं शामिल हैं। यह प्रोजेक्ट नेस्टेड ऑब्जेक्ट पदानुक्रमों को समतल करने, विभिन्न कलेक्शन प्रकारों और स्पैन के रूपांतरण, और स्ट्रिंग्स और प्रिमिटिव प्रकारों के बीच व्यापक एनम (enum) मैपिंग सहित ट्रांसफॉर्मेशन कार्यों की एक विस्तृत श्रृंखला को कवर करता है। यह क्वेरी प्रोजेक्शन के माध्यम से डेटाबेस एकीकरण का भी समर्थन करता है, जो क्वेरी करने योग्य स्रोतों से फील्ड रिट्रीवल को ऑप्टिमाइज़ करने के लिए मैपिंग परिभाषाओं को एक्सप्रेशन ट्री में अनुवादित करता है। कॉन्फ़िगरेशन विकल्प कस्टम ऑब्जेक्ट फैक्ट्री, मेंबर-लेवल बहिष्करण और उपयोगकर्ता-परिभाषित मैपिंग लॉजिक के एकीकरण की अनुमति देते हैं। जनरेट किए गए सोर्स कोड को मैन्युअल निरीक्षण और वर्शन कंट्रोल के लिए एक कॉन्फ़िगर करने योग्य डायरेक्टरी में एक्सपोर्ट किया जा सकता है।
Provides automated code generation for transferring data between different .NET object types, interfaces, and generics.
ts-essentials, TypeScript के लिए यूटिलिटी टाइप्स और लाइब्रेरीज़ का एक व्यापक टूलकिट है, जो रिकर्सिव स्ट्रक्चरल ट्रांसफॉर्मेशन, रनटाइम एसेर्शन और टाइप गार्ड्स के लिए एडवांस्ड प्रिमिटिव्स प्रदान करता है। यह मजबूत टाइप सेफ्टी सुनिश्चित करने और बॉयलरप्लेट को कम करने के लिए जटिल टाइप-लेवल प्रोग्रामिंग करने के लिए एक यूटिलिटी लाइब्रेरी के रूप में कार्य करता है। यह प्रोजेक्ट डीप ऑब्जेक्ट मैनिपुलेशन के लिए टूल्स के एक विशेष सेट के माध्यम से खुद को अलग करता है, जैसे नेस्टेड पदानुक्रमों (hierarchies) में रिकर्सिव रूप से रीड-ओनली या वैकल्पिक मॉडिफायर्स लागू करना। यह डेटा स्ट्रक्चर्स को विशेष रूप से JSON स्पेसिफिकेशन्स के अनुरूप सुनिश्चित करने के लिए सख्त टाइप कंस्ट्रेंट्स का एक समर्पित सेट भी प्रदान करता है। यह टूलकिट मेटाडेटा एक्सट्रैक्शन के लिए टाइप एनालिसिस, यूनियन और टपल मैनिपुलेशन, और स्ट्रक्चरल आइडेंटिटी वैलिडेशन सहित क्षमताओं की एक विस्तृत श्रृंखला को कवर करती है। इसमें कंडीशनल लॉजिक में केस एग्जॉस्टिवनेस को लागू करने और निष्पादन के दौरान टाइप कंस्ट्रेंट्स को सत्यापित करने के लिए रनटाइम वेरिफिकेशन यूटिलिटीज भी शामिल हैं।
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.