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

Function hasStringFields

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

Source from the content-addressed store, hash-verified

315}
316
317function hasStringFields(record: Record<string, unknown>, fields: string[]): boolean {
318 return fields.every((field) => typeof record[field] === 'string');
319}
320
321function hasOptionalStringFields(record: Record<string, unknown>, fields: string[]): boolean {
322 return fields.every((field) => record[field] === undefined || typeof record[field] === 'string');

Callers 1

isRemoteConnectionStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected