function objectOfValidator<T, K>(valueValidator, keyValidator): (x) => x is Record<K, T>
Validates a structure that is an object of a specific type (defined by the subValidator).
Type parameters
| Type parameter | Value |
|---|---|
T | - |
K extends string | number | symbol | string |
Parameters
Returns
Function
Parameters
| Parameter | Type |
|---|---|
x | unknown |
Returns
x is Record<K, T>