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

Function hasText

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

Source from the content-addressed store, hash-verified

63 `${context.surface}/${context.action}`;
64
65const hasText = (value: string | undefined): value is string =>
66 typeof value === "string" && value.trim().length > 0;
67
68/** The best sentence available for a value that carries no usable message. */
69const describeUnknown = (value: unknown, context: FrontendErrorContext): string =>

Callers 2

errorFromCauseFunction · 0.85
toReportableErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected