MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / stringCodeOf

Function stringCodeOf

apps/cloud/src/auth/errors.ts:63–67  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

61};
62
63const stringCodeOf = (value: unknown): string | undefined => {
64 if (typeof value !== "object" || value === null) return undefined;
65 const code = (value as { readonly code?: unknown }).code;
66 return typeof code === "string" ? code : undefined;
67};
68
69const driverCodesOf = (failure: unknown): readonly string[] => {
70 const codes: string[] = [];

Callers 1

driverCodesOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected