The instance type that owns both the predicate and the decorated method.
The name (string or symbol) of a synchronous instance method on this
that acts as the predicate. It is called as this[predicateName](methodName, argsArray).
Optionalopts: GuardedByOptions<T>Optional GuardedByOptions | options to configure inversion and onBlocked.
A methods-only class decorator compatible with Stage-3 decorators that wraps the method.
TypeError
Thrown at initialization time (first instance construction) if predicateName does not resolve
to a synchronous function on the instance.
(decoratedMethodName, argsArray) to support context-aware checks.
Decorator factory that guards class methods behind a synchronous predicate.
When a decorated method is invoked:
invert), the original method is executed and its result is returned.onBlockedhook is invoked (if configured) and:undefinedis returned for sync methods; orPromise<undefined>is returned for async methods (to preserveawaitcompatibility).