MCPcopy Create free account
hub / github.com/CopilotKit/OpenTag / str

Function str

app/modals/file-issue.tsx:25–26  ·  view source on GitHub ↗
(v: unknown, fallback = "")

Source from the content-addressed store, hash-verified

23export const FILE_ISSUE_CALLBACK = "file_issue";
24
25const str = (v: unknown, fallback = ""): string =>
26 typeof v === "string" && v.length > 0 ? v : fallback;
27
28/** Map a modal submission's `values` (keyed by input id) to a typed issue. */
29export function issueFromValues(values: Record<string, unknown>) {

Callers 1

issueFromValuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected