isBooleanOrEmptyString

function isBooleanOrEmptyString(x): x is boolean | ""

This validator validates that value is either boolean or empty string

Parameters

ParameterType
xunknown

Returns

x is boolean | ""