recordValidator

function recordValidator<K, V>(keyList, valueValidator): (x) => x is Record<K, V>

Type parameters

Type parameter
K extends string
V

Parameters

ParameterType
keyListK[]
valueValidatorValidator<V>

Returns

Function

Parameters

ParameterType
xunknown

Returns

x is Record<K, V>