コンテンツにスキップ

RateLimitStrategy

このコンテンツはまだ日本語訳がありません。

RateLimitStrategy: object

Defined in: packages/core/src/rest/strategy.ts:36

Companion object for the RateLimitStrategy type. Provides type guard utility.

readonly is(value): value is RateLimitStrategy

Type guard for RateLimitStrategy.

unknown

the value to check

value is RateLimitStrategy

true if value implements RateLimitStrategy interface

returns true if value has acquire and getStatus methods

if (RateLimitStrategy.is(unknown)) { ... }