ToolValues
ToolValues<
F> ={ [K in F[number] as K["id"]]: ValueOfField<K> }
Every field’s value, keyed by field id and typed by field type: a text field
is a string, a choice is the union of its option ids, a file is string[].
Always complete: a field the user left alone arrives as its default (or empty).
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
F extends readonly ToolField[] |