MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / isRateLimitError

Function isRateLimitError

packages/filesystem/error.ts:82–84  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

80}
81
82export function isRateLimitError(error: unknown): error is FileSystemError {
83 return error instanceof FileSystemError && error.rateLimit;
84}
85
86export function isAuthError(error: unknown): error is FileSystemError | WarpTokenError {
87 return error instanceof FileSystemError ? error.auth : isWarpTokenError(error);

Callers 2

onedrive.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected