MCPcopy Create free account
hub / github.com/callstack/agent-device / optionalString

Function optionalString

src/commands/cli-grammar/common.ts:222–224  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

220}
221
222export function optionalString(value: string | undefined): string[] {
223 return value === undefined ? [] : [value];
224}
225
226export function optionalNumber(value: number | undefined): string[] {
227 return value === undefined ? [] : [String(value)];

Callers 7

logsPositionalsFunction · 0.90
perfPositionalsFunction · 0.90
screenshotDaemonWriterFunction · 0.90
settingsPositionalsFunction · 0.90
index.tsFile · 0.90
recordingPositionalsFunction · 0.90
app.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…