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.
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
Derives a union of all value types contained within an object, tuple, or array.
ts-essentials, TypeScript के लिए यूटिलिटी टाइप्स और लाइब्रेरीज़ का एक व्यापक टूलकिट है, जो रिकर्सिव स्ट्रक्चरल ट्रांसफॉर्मेशन, रनटाइम एसेर्शन और टाइप गार्ड्स के लिए एडवांस्ड प्रिमिटिव्स प्रदान करता है। यह मजबूत टाइप सेफ्टी सुनिश्चित करने और बॉयलरप्लेट को कम करने के लिए जटिल टाइप-लेवल प्रोग्रामिंग करने के लिए एक यूटिलिटी लाइब्रेरी के रूप में कार्य करता है। यह प्रोजेक्ट डीप ऑब्जेक्ट मैनिपुलेशन के लिए टूल्स के एक विशेष सेट के माध्यम से खुद को अलग करता है, जैसे नेस्टेड पदानुक्रमों (hierarchies) में रिकर्सिव रूप से रीड-ओनली या वैकल्पिक मॉडिफायर्स लागू करना। यह डेटा स्ट्रक्चर्स को विशेष रूप से JSON स्पेसिफिकेशन्स के अनुरूप सुनिश्चित करने के लिए सख्त टाइप कंस्ट्रेंट्स का एक समर्पित सेट भी प्रदान करता है। यह टूलकिट मेटाडेटा एक्सट्रैक्शन के लिए टाइप एनालिसिस, यूनियन और टपल मैनिपुलेशन, और स्ट्रक्चरल आइडेंटिटी वैलिडेशन सहित क्षमताओं की एक विस्तृत श्रृंखला को कवर करती है। इसमें कंडीशनल लॉजिक में केस एग्जॉस्टिवनेस को लागू करने और निष्पादन के दौरान टाइप कंस्ट्रेंट्स को सत्यापित करने के लिए रनटाइम वेरिफिकेशन यूटिलिटीज भी शामिल हैं।
Resolves the core data type by returning element types for arrays, return types for functions, or property values for objects.