API reference / @evolu/common / Type / validMutationSize

Function: validMutationSize()

function validMutationSize<T>(
  type,
): BrandType<T, "ValidMutationSize", ValidMutationSizeError, InferErrors<T>>;

Defined in: packages/common/src/Type.ts:3798

Evolu has to limit the maximum mutation size. Otherwise, sync couldn't use the maxProtocolMessageRangesSize. The max size is 640KB in bytes, measured via MessagePack. Evolu Protocol DbChange will be smaller thanks to various optimizations.

Type Parameters

Type Parameter
T extends AnyType

Parameters

ParameterType
typeT

Returns

BrandType<T, "ValidMutationSize", ValidMutationSizeError, InferErrors<T>>

Was this page helpful?