MCPcopy Index your code
hub / github.com/callstack/agent-device / hasOptionalStringFields

Function hasOptionalStringFields

src/remote/remote-connection-state.ts:321–323  ·  view source on GitHub ↗
(record: Record<string, unknown>, fields: string[])

Source from the content-addressed store, hash-verified

319}
320
321function hasOptionalStringFields(record: Record<string, unknown>, fields: string[]): boolean {
322 return fields.every((field) => record[field] === undefined || typeof record[field] === 'string');
323}
324
325function isOptionalRemoteConnectionDaemonState(value: unknown): boolean {
326 if (value === undefined) return true;

Callers 1

isRemoteConnectionStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected