API Reference / @evolu/common / Types
Types
TypeScript Utility Types
Interfaces
Interface | Description |
---|---|
Brand | A utility interface for creating branded types. |
Type Aliases
Type Alias | Description |
---|---|
IntentionalNever | A type alias for never that is used intentionally when casting is not needed and unit tests exist to ensure correctness. |
IsBranded | Determines whether a type T is a branded type. |
Literal | String |
NullablePartial | Makes properties optional if they accept null as a value. |
PartialProp | Makes a specific property of an object optional while keeping others unchanged. |
Predicate | Checks a condition on a value and returns a boolean. |
Refinement | A type guard function that refines type A to a narrower type B . |
Simplify | Simplify an intersection type into a single mapped type. |
WidenLiteral | Infers a broader type from a specific literal value type. |