propertyValidator

function propertyValidator<T>(subValidator, preSaveActions): (subject) => subject is DestructureGuardedTypeObj<Object>

Get a validator which returns whether the property calculation structure is
correct.

Type parameters

Type parameter
T

Parameters

ParameterType
subValidator(p1) => p1 is T
preSaveActions(p1) => unknown[]

Returns

Function

Parameters

ParameterType
subjectunknown

Returns

subject is DestructureGuardedTypeObj<Object>