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

Function hasText

packages/react/src/api/error-reporting.tsx:56–57  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

54 `${context.surface}/${context.action}`;
55
56const hasText = (value: string | undefined): value is string =>
57 typeof value === "string" && value.trim().length > 0;
58
59/** The best sentence available for a value that carries no usable message. */
60const describeUnknown = (value: unknown, context: FrontendErrorContext): string =>

Callers 2

errorFromCauseFunction · 0.85
toReportableErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected