Skip to content

InferAutoFormValues

InferAutoFormValues<TTable, TNested> = TNested extends readonly NestedTableConfig[] ? InferTableRow<TTable> & InferNestedValues<TNested> : InferTableRow<TTable>

Defined in: packages/forms/src/types.ts:348

The fully inferred form value shape for an AutoForm given a parent table and a tuple of nested configs.

InferAutoFormValues<typeof recipes, [{ table: typeof ingredients; foreignKey: "recipeId" }]> resolves to InferTableRow<typeof recipes> & { ingredients: Array<InferTableRow<typeof ingredients>> }.

TTable extends Table

TNested extends readonly NestedTableConfig[] | undefined