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

Function customField

src/commands/command-input.ts:198–203  ·  view source on GitHub ↗
(
  schema: JsonSchema,
  read: (record: Record<string, unknown>, key: string) => T | undefined,
)

Source from the content-addressed store, hash-verified

196}
197
198export function customField<T>(
199 schema: JsonSchema,
200 read: (record: Record<string, unknown>, key: string) => T | undefined,
201): CommandField<T> {
202 return optionalField(schema, read);
203}
204
205export function interactionTargetField(): CommandField<InteractionTargetInput> {
206 return optionalField(interactionTargetSchema(), (record, key) =>

Callers 1

batchFieldsFunction · 0.90

Calls 1

optionalFieldFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…