RateLimitStrategy
RateLimitStrategy:
object
Defined in: packages/core/src/rest/strategy.ts:36
Companion object for the RateLimitStrategy type. Provides type guard utility.
Type Declaration
Section titled “Type Declaration”
readonlyis(value):value is RateLimitStrategy
Type guard for RateLimitStrategy.
Parameters
Section titled “Parameters”unknown
the value to check
Returns
Section titled “Returns”value is RateLimitStrategy
true if value implements RateLimitStrategy interface
Postcondition
Section titled “Postcondition”returns true if value has acquire and getStatus methods
Example
Section titled “Example”if (RateLimitStrategy.is(unknown)) { ... }