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

Function readString

packages/core/src/renderer/renderToDrawlist/simpleVNode.ts:37–39  ·  view source on GitHub ↗
(v: unknown)

Source from the content-addressed store, hash-verified

35}
36
37function readString(v: unknown): string | undefined {
38 return typeof v === "string" ? v : undefined;
39}
40
41function readNumber(v: unknown): number | undefined {
42 if (typeof v !== "number" || !Number.isFinite(v)) return undefined;

Callers 1

renderVNodeSimpleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected