MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / readNonEmptyString

Function readNonEmptyString

packages/core/src/runtime/widgetMeta/helpers.ts:41–45  ·  view source on GitHub ↗
(v: unknown)

Source from the content-addressed store, hash-verified

39}
40
41export function readNonEmptyString(v: unknown): string | null {
42 if (typeof v !== "string") return null;
43 const trimmed = v.trim();
44 return trimmed.length > 0 ? trimmed : null;
45}
46
47/** Metadata for an Input widget instance. */
48export type InputMeta = Readonly<{

Callers 3

readFieldContextFunction · 0.85
buildFocusInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected