8 रिपॉजिटरी
Utilities for manipulating and aggregating properties across union types.
Distinct from Union Types: Candidates focus on GraphQL unions or runtime validation, not type-level aggregation of keys.
Explore 8 awesome GitHub repositories matching programming languages & runtimes · Union 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
Creates a single object type containing every possible key found across a union of object types.
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 or excludes specific members from a union type based on matching criteria.
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.
Filters, excludes, or extracts members from a union type based on a specific condition.
collect.js is a dependency-free JavaScript library that provides a fluent, chainable interface for manipulating arrays and objects. It mirrors the Laravel Collection API, offering a consistent set of methods for data transformation across JavaScript and Laravel backend environments. The library stores collection data as plain arrays internally and supports fluent method chaining, where each method returns a new collection instance. The library distinguishes itself by closely replicating the Laravel Collection API in JavaScript, mapping each PHP method to an equivalent JavaScript implementatio
Provides a flatMap operation that maps and flattens nested arrays into a single sequence.
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 utilities for manipulating, filtering, and aggregating properties across union types.
Octosql is a federated SQL query engine, data transformer, and streaming SQL processor. It allows users to execute single SQL statements across multiple disparate data sources, including different database types and file formats, to merge and transform results into a unified set. The system distinguishes itself by treating CSV, JSONLines, and Parquet files as virtual tables and utilizing a plugin-based architecture to extend connectivity to external storage engines. It functions as a streaming processor for infinite data streams, using watermarks, retractions, and tumbling windows to maintain
Employs a flexible type system to handle columns containing multiple possible types via assertions.
यह प्रोजेक्ट TypeScript भाषा के लिए एक व्यापक गाइड और शैक्षिक संसाधन है। यह भाषा के मूलभूत सिद्धांतों को कवर करता है, जिसमें इसका स्ट्रक्चरल टाइप सिस्टम, स्टेटिक टाइप विश्लेषण और टाइप्ड सोर्स फाइलों को JavaScript में ट्रांसपाइल करने की प्रक्रिया शामिल है। सामग्री विस्तार से बताती है कि जेनेरिक्स, कंडीशनल टाइप्स और मैप्ड टाइप्स का उपयोग करके जटिल डेटा और पुन: प्रयोज्य टाइप लॉजिक को कैसे मॉडल किया जाए। यह बाहरी JavaScript लाइब्रेरी के लिए टाइप सेफ्टी प्रदान करने के लिए डिक्लेरेशन फाइलों के उपयोग और JSDoc एनोटेशन के माध्यम से मौजूदा JavaScript प्रोजेक्ट्स में टाइप चेकिंग के एकीकरण की भी व्याख्या करती है। सामग्री का दायरा ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग पैटर्न, DOM हेरफेर और कंपाइलर व्यवहार के कॉन्फ़िगरेशन तक फैला हुआ है। इसमें मॉड्यूल इंटरऑपरेबिलिटी को प्रबंधित करने, बिल्ड पाइपलाइन सेट करने और बेहतर डेवलपर उत्पादकता के लिए एडिटर इंटेलिजेंस का उपयोग करने पर मार्गदर्शन शामिल है।
Covers how conditional types distribute over unions to enable advanced type mapping.
ts-essentials, TypeScript के लिए यूटिलिटी टाइप्स और लाइब्रेरीज़ का एक व्यापक टूलकिट है, जो रिकर्सिव स्ट्रक्चरल ट्रांसफॉर्मेशन, रनटाइम एसेर्शन और टाइप गार्ड्स के लिए एडवांस्ड प्रिमिटिव्स प्रदान करता है। यह मजबूत टाइप सेफ्टी सुनिश्चित करने और बॉयलरप्लेट को कम करने के लिए जटिल टाइप-लेवल प्रोग्रामिंग करने के लिए एक यूटिलिटी लाइब्रेरी के रूप में कार्य करता है। यह प्रोजेक्ट डीप ऑब्जेक्ट मैनिपुलेशन के लिए टूल्स के एक विशेष सेट के माध्यम से खुद को अलग करता है, जैसे नेस्टेड पदानुक्रमों (hierarchies) में रिकर्सिव रूप से रीड-ओनली या वैकल्पिक मॉडिफायर्स लागू करना। यह डेटा स्ट्रक्चर्स को विशेष रूप से JSON स्पेसिफिकेशन्स के अनुरूप सुनिश्चित करने के लिए सख्त टाइप कंस्ट्रेंट्स का एक समर्पित सेट भी प्रदान करता है। यह टूलकिट मेटाडेटा एक्सट्रैक्शन के लिए टाइप एनालिसिस, यूनियन और टपल मैनिपुलेशन, और स्ट्रक्चरल आइडेंटिटी वैलिडेशन सहित क्षमताओं की एक विस्तृत श्रृंखला को कवर करती है। इसमें कंडीशनल लॉजिक में केस एग्जॉस्टिवनेस को लागू करने और निष्पादन के दौरान टाइप कंस्ट्रेंट्स को सत्यापित करने के लिए रनटाइम वेरिफिकेशन यूटिलिटीज भी शामिल हैं।
Transforms union types into intersection types to facilitate complex function signatures.