isStringOrNegativeOne

function isStringOrNegativeOne(x): x is string | -1

This validator validates that value is either string or -1

Parameters

ParameterType
xunknown

Returns

x is string | -1