makeField function test

Last updated: 2026-03-03T14:14:22.021Z

Metrics

LOC: 11 Complexity: 1 Params: 3

Signature

makeField( index: number, overrides: Partial<FormContextFieldInput> = {}, ): : FormContextFieldInput

Source Code

function makeField(
  index: number,
  overrides: Partial<FormContextFieldInput> = {},
): FormContextFieldInput {
  return {
    index,
    label: `Campo ${index}`,
    fieldType: "text",
    ...overrides,
  };
}

Dependencies (Outgoing)

graph LR makeField["makeField"] FormContextFieldInput["FormContextFieldInput"] makeField -->|uses| FormContextFieldInput makeField -->|calls| makeField style makeField fill:#dbeafe,stroke:#2563eb,stroke-width:2px click makeField "c0f5f9c44889811e.html" click FormContextFieldInput "6194fbe20dc11cf0.html"
TargetType
FormContextFieldInput uses
makeField calls

No incoming dependencies.