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

Function optionalField

src/commands/command-input.ts:525–527  ·  view source on GitHub ↗
(schema: JsonSchema, read: FieldReader<T>)

Source from the content-addressed store, hash-verified

523}
524
525function optionalField<T>(schema: JsonSchema, read: FieldReader<T>): CommandField<T> {
526 return { schema, required: false, read };
527}
528
529function integerSchemaWithBounds(
530 description: string | undefined,

Callers 12

stringFieldFunction · 0.85
numberFieldFunction · 0.85
integerFieldFunction · 0.85
booleanFieldFunction · 0.85
enumFieldFunction · 0.85
looseObjectFieldFunction · 0.85
stringArrayFieldFunction · 0.85
jsonSchemaFieldFunction · 0.85
customFieldFunction · 0.85
interactionTargetFieldFunction · 0.85
elementTargetFieldFunction · 0.85
pointFieldFunction · 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…