8 Repos
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.
Dies ist eine TypeScript-Utility-Typ-Bibliothek, die fortgeschrittene Typ-Aliase und Mapped Types für komplexe Objekt- und Union-Transformationen bereitstellt. Sie implementiert spezialisierte Tools für die Erstellung gebrandeter nominaler Typen, das Extrahieren von Typ-Metadaten und die Durchführung von Mengenoperationen auf Union-Typen. Das Projekt zeichnet sich durch ein Toolkit für rekursive Objekttransformationen aus, das die Anwendung von Eigenschaftseinschränkungen wie Read-only- oder Optional-Status über tief verschachtelte Strukturen hinweg ermöglicht. Zudem bietet es ein System zur Berechnung von Schnittmengen, Differenzen und Komplementen zwischen Union-Typen, um mathematische Mengenlogik zu simulieren. Die Bibliothek deckt ein breites Spektrum an Typsystem-Funktionen ab, einschließlich Objekt-Eigenschaftsfilterung, Formvergleich sowie die Extraktion von Klassenkonstruktoren und Promise-Auflösungstypen. Sie enthält zusätzlich Dienstprogramme für die Wertvalidierung, wie z. B. das Erkennen von falsy oder nullish Werten und die Identifizierung primitiver Typen.
Derives a union of all value types contained within an object, tuple, or array.
This project is a comprehensive guide and educational resource for the TypeScript language. It covers the fundamental principles of the language, including its structural type system, static type analysis, and the process of transpiling typed source files into JavaScript. The material details how to model complex data and reusable type logic using generics, conditional types, and mapped types. It also explains the use of declaration files to provide type safety for external JavaScript libraries and the integration of type checking into existing JavaScript projects via JSDoc annotations. The
Explains how to extract specific property types from an object using keyof operators and indexed access types.
ts-essentials ist ein umfassendes Toolkit mit Utility-Types und Bibliotheken für TypeScript, das erweiterte Primitive für rekursive strukturelle Transformationen, Laufzeit-Assertions und Type-Guards bereitstellt. Es dient als Utility-Bibliothek zur Durchführung komplexer Type-Level-Programmierung, um eine stärkere Typsicherheit zu gewährleisten und Boilerplate-Code zu reduzieren. Das Projekt zeichnet sich durch ein spezialisiertes Set an Tools für die tiefe Objektmanipulation aus, wie etwa das rekursive Anwenden von Read-only- oder Optional-Modifikatoren über verschachtelte Hierarchien hinweg. Zudem bietet es ein dediziertes Set an strikten Type-Constraints, um sicherzustellen, dass Datenstrukturen spezifisch den JSON-Spezifikationen entsprechen. Das Toolkit deckt ein breites Spektrum an Funktionen ab, einschließlich Typanalyse für die Metadatenextraktion, Union- und Tuple-Manipulation sowie Validierung der strukturellen Identität. Es enthält zudem Laufzeit-Verifizierungs-Utilities, um die Vollständigkeit von Cases in der bedingten Logik zu erzwingen und Typ-Constraints während der Ausführung zu validieren.
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.