MCPcopy Create free account
hub / github.com/code-with-antonio/nightcode / hasStatusCode

Function hasStatusCode

packages/server/src/lib/polar.ts:43–50  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

41});
42
43function hasStatusCode(error: unknown): error is { statusCode: number } {
44 return (
45 typeof error === "object" &&
46 error !== null &&
47 "statusCode" in error &&
48 typeof error.statusCode === "number"
49 );
50}
51
52type CreateCheckoutUrlParams = {
53 customerExternalId: string;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected