3 Repos
Creating structured object types with optional, readonly, and index signature properties, then extending or intersecting them.
Distinct from User-Defined Types: Distinct from User-Defined Types: focuses specifically on composing object types with extends and intersections, not general custom type creation.
Explore 3 awesome GitHub repositories matching programming languages & runtimes · Object Type Composition. Refine with filters or upvote what's useful.
The Concise TypeScript Book: A Concise Guide to Effective Development in TypeScript. Free and Open Source.
Teaches how to define and compose object types using interfaces and intersections.
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
Allows the creation of composite types by extending or intersecting multiple object definitions.
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
Provides instructions on using interfaces and intersections to compose and extend object types.