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

Function toInputValue

packages/core/src/forms/bind.ts:84–89  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

82}
83
84function toInputValue(value: unknown): string {
85 if (value === null || value === undefined) {
86 return "";
87 }
88 return String(value);
89}
90
91export function bind<S extends Record<string, unknown>, K extends keyof S>(
92 state: S,

Callers 2

bindFunction · 0.70
bindSelectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected