8 repository-uri
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.
Aceasta este o bibliotecă de utilitare TypeScript care oferă alias-uri de tip avansate și tipuri mapate pentru transformări complexe de obiecte și uniuni. Implementează instrumente specializate pentru crearea de tipuri nominale marcate (branded types), extragerea metadatelor de tip și efectuarea operațiunilor de set pe tipuri de uniune. Proiectul se distinge printr-un toolkit pentru transformări recursive de obiecte, permițând aplicarea constrângerilor de proprietate precum starea read-only sau opțională pe structuri profund imbricate. De asemenea, oferă un sistem pentru calcularea intersecțiilor, diferențelor și complementelor între tipurile de uniune pentru a simula logica matematică a seturilor. Biblioteca acoperă o gamă largă de capabilități ale sistemului de tipuri, inclusiv filtrarea proprietăților obiectelor, compararea formelor și extragerea constructorilor de clase și a tipurilor de rezoluție a promisiunilor. Include, în plus, utilitare pentru validarea valorilor, cum ar fi detectarea valorilor falsy sau nullish și identificarea tipurilor primitive.
Derives a union of all value types contained within an object, tuple, or array.
Acest proiect este un ghid cuprinzător și o resursă educațională pentru limbajul TypeScript. Acoperă principiile fundamentale ale limbajului, inclusiv sistemul său de tipuri structurale, analiza statică a tipurilor și procesul de transpilare a fișierelor sursă tipizate în JavaScript. Materialul detaliază modul de modelare a datelor complexe și a logicii de tip reutilizabile folosind generice, tipuri condiționale și tipuri mapate. De asemenea, explică utilizarea fișierelor de declarație pentru a oferi siguranța tipurilor pentru bibliotecile JavaScript externe și integrarea verificării tipurilor în proiectele JavaScript existente prin adnotări JSDoc. Domeniul de aplicare al conținutului se extinde la modele de programare orientată pe obiecte, manipularea DOM și configurarea comportamentelor compilatorului. Include îndrumări privind gestionarea interoperabilității modulelor, configurarea pipeline-urilor de build și utilizarea inteligenței editorului pentru o mai bună productivitate a dezvoltatorilor.
Explains how to extract specific property types from an object using keyof operators and indexed access types.
ts-essentials este un set de instrumente cuprinzător de tipuri utilitare și biblioteci pentru TypeScript, oferind primitive avansate pentru transformări structurale recursive, aserțiuni la runtime și type guards. Servește drept bibliotecă utilitară pentru efectuarea programării complexe la nivel de tip pentru a asigura o siguranță mai puternică a tipurilor și a reduce boilerplate-ul. Proiectul se distinge printr-un set specializat de instrumente pentru manipularea profundă a obiectelor, cum ar fi aplicarea recursivă a modificatorilor read-only sau opționali în ierarhii imbricate. De asemenea, oferă un set dedicat de constrângeri stricte de tip pentru a asigura că structurile de date respectă în mod specific specificațiile JSON. Setul de instrumente acoperă o gamă largă de capabilități, inclusiv analiza tipurilor pentru extracția metadatelor, manipularea uniunilor și tuplelor și validarea identității structurale. Include, de asemenea, utilitare de verificare la runtime pentru a impune exhaustivitatea cazurilor în logica condițională și pentru a valida constrângerile de tip în timpul execuției.
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.