MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / stringValue

Function stringValue

projects/openade-module/src/yjsProjection.ts:38–40  ·  view source on GitHub ↗
(value: unknown, fallback = "")

Source from the content-addressed store, hash-verified

36}
37
38function stringValue(value: unknown, fallback = ""): string {
39 return typeof value === "string" ? value : fallback
40}
41
42function optionalString(value: unknown): string | undefined {
43 return typeof value === "string" ? value : undefined

Callers 4

toOpenADETaskPreviewFunction · 0.70
toOpenADEProjectFunction · 0.70
resolveThemeFunction · 0.70
readTaskFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected