Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Latest commit

 

History

History
21 lines (11 loc) · 694 Bytes

File metadata and controls

21 lines (11 loc) · 694 Bytes

@ceramic-sdk/model-instance-handler v0.2.1Docs


Ceramic SDK / @ceramic-sdk/model-instance-handler / assertNoImmutableFieldChange

Function: assertNoImmutableFieldChange()

assertNoImmutableFieldChange(operations, immutableFields): void

Helper function to validate if immutable fields are being mutated

Parameters

operations: (MapIn<object, $TypeOf> | MapIn<object, $TypeOf> | MapIn<object, $TypeOf> | MapIn<object, $TypeOf> | MapIn<object, $TypeOf> | MapIn<object, $TypeOf>)[]

immutableFields: string[] = []

Returns

void