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

Function stringCodeOf

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

Source from the content-addressed store, hash-verified

82};
83
84const stringCodeOf = (value: unknown): string | undefined => {
85 if (typeof value !== "object" || value === null) return undefined;
86 const code = (value as { readonly code?: unknown }).code;
87 return typeof code === "string" ? code : undefined;
88};
89
90const driverCodesOf = (failure: unknown): readonly string[] => {
91 const codes: string[] = [];

Callers 1

driverCodesOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected