API reference / @evolu/common / Types
Types
TypeScript utility 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. |
| Literal | String, number, bigint, boolean, undefined, null |
| 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. |