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

Function compactRecord

src/commands/command-input.ts:521–523  ·  view source on GitHub ↗
(record: Record<string, unknown>)

Source from the content-addressed store, hash-verified

519}
520
521export function compactRecord(record: Record<string, unknown>): Record<string, unknown> {
522 return Object.fromEntries(Object.entries(record).filter(([, value]) => value !== undefined));
523}
524
525function optionalField<T>(schema: JsonSchema, read: FieldReader<T>): CommandField<T> {
526 return { schema, required: false, read };

Callers 8

readAlertInputFunction · 0.90
readKeyboardInputFunction · 0.90
commonInputFromFlagsFunction · 0.90
repeatedInputFromFlagsFunction · 0.90
readFieldInputFunction · 0.85
commonToClientOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…