API reference / @evolu/common / Types

Types

TypeScript utility 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.
LiteralString, number, bigint, boolean, undefined, null
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?