Skip to content

isPolicyError

isPolicyError(toCheck): toCheck is PolicyError

Defined in: policy.ts:495

Type guard to check if a result is a PolicyError (new format).

any

Value to inspect.

toCheck is PolicyError

Whether the value is a non-null object with a string error property.