findAntId function infrastructure exported ✓ 100.0%

Last updated: 2026-03-04T23:21:38.390Z

Metrics

LOC: 6 Complexity: 3 Params: 1 Coverage: 100.0% (2/2 lines, 62x executed)

Signature

findAntId(wrapper: HTMLElement): : string | undefined

Summary

Extracts the id from Ant Design's form item. Antd assigns id to the inner control based on name prop.

Source Code

export function findAntId(wrapper: HTMLElement): string | undefined {
  const input = wrapper.querySelector<HTMLElement>(
    "input, textarea, [role='combobox'], [role='listbox']",
  );
  return input?.id || wrapper.id || undefined;
}

No outgoing dependencies.

Impact (Incoming)

graph LR findAntId["findAntId"] matches["matches"] buildField["buildField"] matches -->|uses| findAntId buildField -->|calls| findAntId matches -->|uses| findAntId buildField -->|calls| findAntId matches -->|uses| findAntId buildField -->|calls| findAntId matches -->|uses| findAntId buildField -->|calls| findAntId matches -->|uses| findAntId buildField -->|calls| findAntId matches -->|uses| findAntId buildField -->|calls| findAntId matches -->|uses| findAntId buildField -->|calls| findAntId matches -->|uses| findAntId buildField -->|calls| findAntId matches -->|uses| findAntId buildField -->|calls| findAntId matches -->|uses| findAntId buildField -->|calls| findAntId matches -->|uses| findAntId buildField -->|calls| findAntId matches -->|uses| findAntId buildField -->|calls| findAntId style findAntId fill:#dbeafe,stroke:#2563eb,stroke-width:2px click findAntId "5d7c366d4d585434.html" click matches "697a9d97bb027c9d.html" click buildField "04978f0607436868.html"
SourceType
matches uses
buildField calls
matches uses
buildField calls
matches uses
buildField calls
matches uses
buildField calls
matches uses
buildField calls
matches uses
buildField calls
matches uses
buildField calls
matches uses
buildField calls
matches uses
buildField calls
matches uses
buildField calls
matches uses
buildField calls
matches uses
buildField calls