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

Function stringValue

apps/cloud/src/observability/error-logging.ts:12–15  ·  view source on GitHub ↗
(value: unknown, key: string)

Source from the content-addressed store, hash-verified

10};
11
12const stringValue = (value: unknown, key: string): string | undefined => {
13 const field = objectValue(value, key);
14 return typeof field === "string" ? field : undefined;
15};
16
17const firstFailureOrDefect = (cause: Cause.Cause<unknown>): unknown => {
18 const failure = Cause.findErrorOption(cause);

Callers 1

errorTagFunction · 0.85

Calls 1

objectValueFunction · 0.85

Tested by

no test coverage detected