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

Function optionalStringParam

projects/openade-module/src/module.ts:152–155  ·  view source on GitHub ↗
(record: Record<string, unknown>, key: string)

Source from the content-addressed store, hash-verified

150}
151
152function optionalStringParam(record: Record<string, unknown>, key: string): string | undefined {
153 const value = record[key]
154 return typeof value === "string" && value.length > 0 ? value : undefined
155}
156
157function booleanParam(record: Record<string, unknown>, key: string): boolean | undefined {
158 const value = record[key]

Callers 15

hyperplanStrategyParamFunction · 0.85
repoCreateParamsFunction · 0.85
repoUpdateParamsFunction · 0.85
createActionEventParamsFunction · 0.85
errorActionEventParamsFunction · 0.85
stoppedActionEventParamsFunction · 0.85
snapshotFilesParamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected