MCPcopy
hub / github.com/anomalyco/opencode / isUnauthorizedError

Function isUnauthorizedError

packages/client/src/generated/types.ts:12–13  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

10
11export type UnauthorizedError = { readonly _tag: "UnauthorizedError"; readonly message: string }
12export const isUnauthorizedError = (value: unknown): value is UnauthorizedError =>
13 typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "UnauthorizedError"
14
15export type InvalidRequestError = {
16 readonly _tag: "InvalidRequestError"

Callers 1

promise.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected