API Reference / @evolu/common / Types

Types

TypeScript Utility Types

Interfaces

InterfaceDescription
BrandA utility interface for creating branded types.

Type Aliases

Type AliasDescription
IntentionalNeverA type alias for never that is used intentionally when casting is not needed and unit tests exist to ensure correctness.
IsBrandedDetermines whether a type T is a branded type.
LiteralString
NullablePartialMakes properties optional if they accept null as a value.
PartialPropMakes a specific property of an object optional while keeping others unchanged.
PredicateChecks a condition on a value and returns a boolean.
RefinementA type guard function that refines type A to a narrower type B.
SimplifySimplify an intersection type into a single mapped type.
WidenLiteralInfers a broader type from a specific literal value type.

Was this page helpful?