2 مستودعات
Utilities for defining and enforcing strict structural requirements on TypeScript types.
Distinct from Required Key Extractions: The candidates focus on API keys, network protocols, or extracting existing keys, whereas this feature defines a constraint for a single required key among optionals.
Explore 2 awesome GitHub repositories matching software engineering & architecture · Type Constraint Enforcements. Refine with filters or upvote what's useful.
ts-essentials is a comprehensive toolkit of utility types and libraries for TypeScript, providing advanced primitives for recursive structural transformations, runtime assertions, and type guards. It serves as a utility library for performing complex type-level programming to ensure stronger type safety and reduce boilerplate. The project distinguishes itself through a specialized set of tools for deep object manipulation, such as recursively applying read-only or optional modifiers across nested hierarchies. It also provides a dedicated set of strict type constraints to ensure data structure
TypeScript-ts-tool creates a type that requires exactly one specific key from a set to be present while leaving others optional.
msgspec is a high-performance data modeling, serialization, and schema validation toolkit for Python. It serves as a type-safe serialization framework that integrates schema enforcement and data parsing into a single pass, functioning as both a data serialization library and a schema validation system based on standard Python type annotations. The project distinguishes itself through high-performance structural primitives, including compilation-based routine generation and zero-copy buffer parsing. It optimizes memory usage via garbage collection-aware layouts and reduces processing overhead
Enforces structural and value constraints including numeric ranges, string lengths, and regex patterns.