( schema: JsonSchema, read: (record: Record<string, unknown>, key: string) => T | undefined, )
| 196 | } |
| 197 | |
| 198 | export 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 | |
| 205 | export function interactionTargetField(): CommandField<InteractionTargetInput> { |
| 206 | return optionalField(interactionTargetSchema(), (record, key) => |
no test coverage detected
searching dependent graphs…