1 个仓库
Utility types that change object properties to be read-only or mutable at the type level.
Distinct from Mutability Modifiers: Operates on the TypeScript type system's read-only modifiers rather than language-level variable mutability.
Explore 1 awesome GitHub repository matching data & databases · Type-Level. Refine with filters or upvote what's useful.
这是一个 TypeScript 实用类型库,为复杂的对象和联合类型转换提供高级类型别名和映射类型。它实现了用于创建品牌化(branded)标称类型、提取类型元数据以及对联合类型执行集合操作的专用工具。 该项目通过一个用于递归对象转换的工具包脱颖而出,允许在深度嵌套的结构中应用只读或可选状态等属性约束。它还提供了一个用于计算联合类型之间的交集、差集和补集的系统,以模拟数学集合逻辑。 该库涵盖了广泛的类型系统功能,包括对象属性过滤、形状比较以及类构造函数和 Promise 解析类型的提取。它还包括用于值验证的实用程序,例如检测假值或空值以及识别原始类型。
Changes properties or nested structures to be either read-only or mutable via utility types.