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

Function stringParam

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

Source from the content-addressed store, hash-verified

144}
145
146function stringParam(record: Record<string, unknown>, key: string): string {
147 const value = record[key]
148 if (typeof value !== "string" || value.length < 1) throw new Error(`${key} is invalid`)
149 return value
150}
151
152function optionalStringParam(record: Record<string, unknown>, key: string): string | undefined {
153 const value = record[key]

Callers 15

hyperplanStrategyParamFunction · 0.85
repoUserParamFunction · 0.85
repoCreateParamsFunction · 0.85
repoUpdateParamsFunction · 0.85
repoDeleteParamsFunction · 0.85
taskDeleteParamsFunction · 0.85
createActionEventParamsFunction · 0.85
errorActionEventParamsFunction · 0.85
stoppedActionEventParamsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected