isPolicyError
isPolicyError(
toCheck):toCheck is PolicyError
Defined in: policy.ts:495
Type guard to check if a result is a PolicyError (new format).
Parameters
Section titled “Parameters”toCheck
Section titled “toCheck”any
Value to inspect.
Returns
Section titled “Returns”toCheck is PolicyError
Whether the value is a non-null object with a string error property.